]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (whole-archive-flag-spec): test whether the
authorGary V. Vaughan <gary@gnu.org>
Wed, 22 Sep 1999 00:12:11 +0000 (00:12 +0000)
committerGary V. Vaughan <gary@gnu.org>
Wed, 22 Sep 1999 00:12:11 +0000 (00:12 +0000)
version of GNU ld being used understands --whole-archive
before using it.

ChangeLog
ltconfig.in

index c179c0f75199af49cd3f34638424437aa7085818..99e1f98faa50683a0a857ea049b6379876c48f49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-09-22  Gary V. Vaughan  <gary@oranda.demon.co.uk>
+       * 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  <pavel_roskin@geocities.com>
 
        * ltmain.in: Ensure that gcc on HPsUX uses -fPIC, or else
index 96214b724610f63e7415abbf391a26244bfa9e2d..d95c2baee14b89f6ccf5f6e8959a7589f866197a 100755 (executable)
@@ -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