From: Peter O'Gorman Date: Sun, 16 Jan 2005 14:07:35 +0000 (+0000) Subject: * config/ltmain.m4sh (func_mode_link): Don't pass through X-Git-Tag: release-2-1b~780 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dfabd5cdc28b8c459d0bdda625ad5a79a29d556;p=thirdparty%2Flibtool.git * config/ltmain.m4sh (func_mode_link): Don't pass through compiler-like thread flags when using $LD to do the linking. Use compiler_flags instead. Reported by Mark_Andrews@isc.org. --- diff --git a/ChangeLog b/ChangeLog index 2e4f546d1..34ab2fc04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-01-16 Peter O'Gorman + * config/ltmain.m4sh (func_mode_link): Don't pass through + compiler-like thread flags when using $LD to do the linking. + Use compiler_flags instead. + Reported by Mark_Andrews@isc.org. + * m4/libtool.m4 (LT_CMD_MAX_LEN) [osf]: On Tru64 there could be a kernel panic when testing the maximum command line length if exec_disable_arg_limit=1. Don't do the tests to figure it diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index 638ba1400..975d07cb2 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -2672,7 +2672,7 @@ func_mode_link () ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) - deplibs="$deplibs $arg" + compiler_flags="$compiler_flags $arg" continue ;; @@ -3143,7 +3143,7 @@ func_mode_link () compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else - deplibs="$deplib $deplibs" + compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;;