From: Gary V. Vaughan Date: Wed, 22 Sep 1999 00:12:11 +0000 (+0000) Subject: * ltconfig.in (whole-archive-flag-spec): test whether the X-Git-Tag: release-1-3-4~12 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=636cbf103e8d733fac1d26f3634a04b40d464a4d;p=thirdparty%2Flibtool.git * ltconfig.in (whole-archive-flag-spec): test whether the version of GNU ld being used understands --whole-archive before using it. --- diff --git a/ChangeLog b/ChangeLog index c179c0f75..99e1f98fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-09-22 Gary V. Vaughan + + * ltconfig.in (whole-archive-flag-spec): test whether the + version of GNU ld being used understands --whole-archive + before using it. + 1999-07-30 Pavel Roskin * ltmain.in: Ensure that gcc on HPsUX uses -fPIC, or else diff --git a/ltconfig.in b/ltconfig.in index 96214b724..d95c2baee 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1244,7 +1244,12 @@ EOF whole_archive_flag_spec= ;; *) - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>71 | egrep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi ;; esac fi