]> andersk Git - openssh.git/commitdiff
- (dtucker) [configure.ac] Try AIX blibpath test in different order when
authordtucker <dtucker>
Thu, 6 Jul 2006 01:56:25 +0000 (01:56 +0000)
committerdtucker <dtucker>
Thu, 6 Jul 2006 01:56:25 +0000 (01:56 +0000)
   compiling with gcc.  gcc 4.1.x will accept (but ignore) -b flags so
   configure would not select the correct libpath linker flags.

ChangeLog
configure.ac

index 967a70d44fe22778465774208d5a8fa20c5053e7..27f8ec607b910ef772472c3c8de65ecdd3afdbca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+20060706
+ - (dtucker) [configure.ac] Try AIX blibpath test in different order when
+   compiling with gcc.  gcc 4.1.x will accept (but ignore) -b flags so
+   configure would not select the correct libpath linker flags.
+
 20060705
  - (dtucker) [ssh-rand-helper.c] Don't exit if mkdir fails because the
    target already exists.
index d0d4aea47fabe3820cb006ab2b46b659426ae3b1..675ff284362731fb2043da288695339bdc973bcb 100644 (file)
@@ -135,7 +135,12 @@ case "$host" in
                blibpath="/usr/lib:/lib"
        fi
        saved_LDFLAGS="$LDFLAGS"
-       for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do
+       if test "$GCC" = "yes"; then
+               flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
+       else
+               flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
+       fi
+       for tryflags in $flags ;do
                if (test -z "$blibflags"); then
                        LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
                        AC_TRY_LINK([], [], [blibflags=$tryflags])
This page took 0.148236 seconds and 5 git commands to generate.