]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (deplib): The cygwin environment doesn't actually have
authorGary V. Vaughan <gary@gnu.org>
Fri, 12 Feb 1999 18:53:52 +0000 (18:53 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 12 Feb 1999 18:53:52 +0000 (18:53 +0000)
-lm, and although the linker fakes having one, specifiying it to
libtool will break ILD, so we ignore it when generating
dependencies.

ChangeLog
ltmain.in

index 8e23ae04158677fbff4dec56ae85e1a319169fb8..3698fe4290e7a60871476e526683625cea550520 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
 1999-02-12  Gary V. Vaughan  <gvaughan@oranda.demon.co.uk>
+       
+       * ltmain.in (deplib): The cygwin environment doesn't actually have
+       -lm, and although the linker fakes having one, specifiying it to
+       libtool will break ILD, so we ignore it when generating
+       dependencies.
 
        * ltmain.in: Applied Thomas Tanner's latest ild.diff.  I seem to
        be spending all my time merging these diffs rather than adding to
index 9ee221c881450b5e838bdf9edf34341a5e5c7628..d062920e18018aa220982f9b2d74203d03787ddb 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1398,6 +1398,15 @@ compiler."
          continue
          ;;
        -l*)
+         case "$host" in
+         *-*-cygwin*)
+           # The cygwin environment doesn't actually have -lm, and
+           # although the linker fakes having one, specifiying it to
+           # libtool will break ILD!
+           case "$deplib" in
+           -lm) continue ;;
+           esac
+         esac
          name="`expr $deplib : '-l\(.*\)'`"
          libname=`eval \\$echo \"$libname_spec\"`
          found=no