From 636cbf103e8d733fac1d26f3634a04b40d464a4d Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Wed, 22 Sep 1999 00:12:11 +0000 Subject: [PATCH] * ltconfig.in (whole-archive-flag-spec): test whether the version of GNU ld being used understands --whole-archive before using it. --- ChangeLog | 6 ++++++ ltconfig.in | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 -- 2.47.2