From: Gary V. Vaughan Date: Tue, 18 May 1999 11:22:00 +0000 (+0000) Subject: * ltconfig.in (cygwin*, whole_archive_flag_spec): dlltool chokes X-Git-Tag: release-1-3-1~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17dc186b3af263f3fb1c1b688f027c05cd76ce0c;p=thirdparty%2Flibtool.git * ltconfig.in (cygwin*, whole_archive_flag_spec): dlltool chokes on this, so leave it unset in this case so that the ltmain code knows it has to unpack convenience archives by itself. --- diff --git a/ChangeLog b/ChangeLog index cab920746..adf0ad6dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-05-18 Gary V. Vaughan + + * ltconfig.in (cygwin*, whole_archive_flag_spec): dlltool chokes + on this, so leave it unset in this case so that the ltmain code + knows it has to unpack convenience archives by itself. + 1999-05-17 Gary V. Vaughan * ltmain.in: Do not exit when an unknown library name is passed diff --git a/ltconfig.in b/ltconfig.in index 726e4921d..09af499b4 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1182,7 +1182,15 @@ EOF runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + case $host_os in + cygwin* | mingw*) + # dlltool doesn't understand --whole-archive et. al. + whole_archive_flag_spec= + ;; + *) + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + ;; + esac fi else # PORTME fill in a description of your system's linker (not GNU ld)