From: Gary V. Vaughan Date: Fri, 12 Feb 1999 18:53:52 +0000 (+0000) Subject: * ltmain.in (deplib): The cygwin environment doesn't actually have X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c61b75ee1eaa664f50584517b99d98b39bd85776;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 8e23ae041..3698fe429 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ 1999-02-12 Gary V. Vaughan + + * 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 diff --git a/ltmain.in b/ltmain.in index 9ee221c88..d062920e1 100644 --- 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