* ltconfig.in (whole-archive-flag-spec): test whether the

version of GNU ld being used understands --whole-archive
before using it.
This commit is contained in:
Gary V. Vaughan 1999-09-22 00:14:08 +00:00
parent f8d63238ac
commit 6be47e4453
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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