]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/ltmain.m4sh (func_mode_link): Don't pass through
authorPeter O'Gorman <peter@pogma.com>
Sun, 16 Jan 2005 14:07:06 +0000 (14:07 +0000)
committerPeter O'Gorman <peter@pogma.com>
Sun, 16 Jan 2005 14:07:06 +0000 (14:07 +0000)
compiler-like thread flags when using $LD to do the linking.
Use compiler_flags instead.
Reported by Mark_Andrews@isc.org.

ChangeLog
config/ltmain.m4sh

index 5ae3f0628cbe6c0a8a639e397bcb97897de0351a..2cca3904cf167f7e0694409f485e14ade6dddd09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-01-16  Peter O'Gorman  <peter@pogma.com>
 
+       * 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 
index a7d01c64fe990be08581997201cb44dfc55e15af..2ac88b044508ec76f13d067c9bce3e7c5ff28e53 100644 (file)
@@ -2651,7 +2651,7 @@ func_mode_link ()
        ;;
 
       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
-       deplibs="$deplibs $arg"
+       compiler_flags="$compiler_flags $arg"
        continue
        ;;
 
@@ -3135,7 +3135,7 @@ func_mode_link ()
            compile_deplibs="$deplib $compile_deplibs"
            finalize_deplibs="$deplib $finalize_deplibs"
          else
-           deplibs="$deplib $deplibs"
+           compiler_flags="$compiler_flags $deplib"
          fi
          continue
          ;;