]> 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:14:08 +0000 (00:14 +0000)
committerGary V. Vaughan <gary@gnu.org>
Wed, 22 Sep 1999 00:14:08 +0000 (00:14 +0000)
version of GNU ld being used understands --whole-archive
before using it.

ChangeLog
ltconfig.in

index 20318f908645f69a58995662edd1e03d2d705b19..dfa5cdf394ace6b9377ab976a95f9b6a4e4e992e 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-09-19  Thomas Tanner  <tanner@ffii.org>
 
        * ltmain.in: don't ignore convenience libraries for objects/archives
index 5041f1926f6247b233ddb736f3a5dc64d2119fdf..623204f9443ca4adf5de5a774ad08f9a0ece241d 100755 (executable)
@@ -1464,7 +1464,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