version of GNU ld being used understands --whole-archive
before using it.
+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
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