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

ChangeLog
ltmain.in

index a2ba1067324d3a81f9362c9ccd7b5788441505a3..cdde893530a59a22fb9e36b37fb1ad162362815c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-01-16  Peter O'Gorman  <peter@pogma.com>
 
+       * ltmain.in: 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.
+
        * 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 9b63369b255227391a0eae7048ba6e8159f541c8..ee326995f4b2ebf607fb71edc4579dc5c4e69941 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1510,7 +1510,7 @@ EOF
        ;;
 
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
-       deplibs="$deplibs $arg"
+       compiler_flags="$compiler_flags $arg"
        continue
        ;;
 
@@ -1998,7 +1998,7 @@ EOF
            compile_deplibs="$deplib $compile_deplibs"
            finalize_deplibs="$deplib $finalize_deplibs"
          else
-           deplibs="$deplib $deplibs"
+           compiler_flags="$compiler_flags $deplib"
          fi
          continue
          ;;