]> andersk Git - openssh.git/commitdiff
- (dtucker) [configure.ac] Add -fstack-protector to LDFLAGS too, fixes
authordtucker <dtucker>
Thu, 28 Feb 2008 04:01:13 +0000 (04:01 +0000)
committerdtucker <dtucker>
Thu, 28 Feb 2008 04:01:13 +0000 (04:01 +0000)
   linking problems on AIX with gcc 4.1.x.

ChangeLog
configure.ac

index 8610ad0ec50b49af2bfb1fe8a26dec532f3ad7b7..dc761e4de5b46bf82486c3021e58f0310c1b5b34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20080228
+ - (dtucker) [configure.ac] Add -fstack-protector to LDFLAGS too, fixes
+   linking problems on AIX with gcc 4.1.x.
+
 20080225
  - (dtucker) [openbsd-compat/fake-rfc2553.h] rename ssh_gai_strerror hack
    since it now conflicts with the helper function in misc.c.  From
index 02022a9fdeaea24793cbec292255853516fb110d..2f6c7ebb1853616d89e612daac10c9ca79aa3720 100644 (file)
@@ -107,11 +107,15 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
 
        AC_MSG_CHECKING(if $CC understands -fstack-protector-all)
        saved_CFLAGS="$CFLAGS"
+       saved_LDFLAGS="$LDFLAGS"
        CFLAGS="$CFLAGS -fstack-protector-all"
-       AC_TRY_COMPILE([], [ int main(void){return 0;} ],
+       LDFLAGS="$LDFLAGS -fstack-protector-all"
+       AC_TRY_LINK([], [ int main(void){return 0;} ],
            [ AC_MSG_RESULT(yes) ],
            [ AC_MSG_RESULT(no)
-             CFLAGS="$saved_CFLAGS" ]
+             CFLAGS="$saved_CFLAGS"
+             LDFLAGS="$saved_LDFLAGS"
+            ]
        )
 
        if test -z "$have_llong_max"; then
This page took 0.188956 seconds and 5 git commands to generate.