The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ipmiutil / 0001-configure.ac-use-CC-instead-of-gcc-full-link-for-sta.patch
1 From 2909bfbc97559cf3e28c9045f64e3078aacca354 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 4 Apr 2015 17:59:32 +0200
4 Subject: [PATCH] configure.ac: use CC instead of gcc, full link for stack
5  protector test
6
7 Using gcc directly is incorrect when cross-compiling, $CC should be
8 used instead.
9
10 Also, for the stack protector test, a full link is needed, since just
11 the compilation can work, but the link can fail due to libssp not
12 being available in the toolchain.
13
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 ---
16  configure.ac | 4 ++--
17  1 file changed, 2 insertions(+), 2 deletions(-)
18
19 diff --git a/configure.ac b/configure.ac
20 index c1193c6..61efbc5 100644
21 --- a/configure.ac
22 +++ b/configure.ac
23 @@ -308,7 +308,7 @@ else
24         echo $ECHO_N "checking compile warning flags ... $ECHO_C"
25         cfwarn="-Wno-pointer-sign -Wno-sign-conversion -Wunused-result -Wgnu-designator"
26         echo "int main() { return(1); }" >$tmpc
27 -       gcc -o $tmpo -c $cfwarn $tmpc  >/dev/null 2>&1
28 +       $CC -o $tmpo -c $cfwarn $tmpc  >/dev/null 2>&1
29         if test $? -ne 0 ; then
30            cfwarn=
31            echo "skip"
32 @@ -319,7 +319,7 @@ else
33         echo $ECHO_N "checking compile fortify flags ... $ECHO_C"
34         cfhard="-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
35         echo "int main() { return(1); }" >$tmpc
36 -       gcc -o $tmpo -c $cfhard $tmpc  >/dev/null 2>&1
37 +       $CC -o $tmpo $cfhard $tmpc  >/dev/null 2>&1
38         if test $? -ne 0 ; then
39            cfhard=
40            echo "skip"
41 -- 
42 2.1.0
43