From c61b75ee1eaa664f50584517b99d98b39bd85776 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Fri, 12 Feb 1999 18:53:52 +0000 Subject: [PATCH] * 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. --- ChangeLog | 5 +++++ ltmain.in | 9 +++++++++ 2 files changed, 14 insertions(+) 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 -- 2.47.2