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 / cups / 0002-fix-stack-protector-check.patch
1 [PATCH]: use AC_TRY_LINK for stack protector check
2
3 Actually try to link an executable to test for stack protector support,
4 as gcc seems to accept the -fstack-protector argument even when it's
5 compiled with --disable-libssp (but linking fails with a error
6 finding -lssp_nonshared).
7
8 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
9 ---
10  config-scripts/cups-compiler.m4 |    2 +-
11  1 file changed, 1 insertion(+), 1 deletion(-)
12
13 Index: cups-1.3.9/config-scripts/cups-compiler.m4
14 ===================================================================
15 --- cups-1.3.9.orig/config-scripts/cups-compiler.m4
16 +++ cups-1.3.9/config-scripts/cups-compiler.m4
17 @@ -109,7 +109,7 @@ if test -n "$GCC"; then
18         AC_MSG_CHECKING(if GCC supports -fstack-protector)
19         OLDCFLAGS="$CFLAGS"
20         CFLAGS="$CFLAGS -fstack-protector"
21 -       AC_TRY_COMPILE(,,
22 +       AC_TRY_LINK(,,
23                 OPTIM="$OPTIM -fstack-protector"
24                 AC_MSG_RESULT(yes),
25                 AC_MSG_RESULT(no))