From: Alexandre Oliva Date: Mon, 4 Sep 2000 05:10:30 +0000 (+0000) Subject: * ltmain.in (link -static): Don't add $link_static_flag; only X-Git-Tag: release-1-3d~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4c91b59840ff9ac649e6e447b9d1b0f3cad6c2d;p=thirdparty%2Flibtool.git * ltmain.in (link -static): Don't add $link_static_flag; only -all-static should do that. * mdemo/configure.in: Revert part of the previous delta. --- diff --git a/ChangeLog b/ChangeLog index 9e46baace..ae49da2c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-09-04 Alexandre Oliva + * ltmain.in (link -static): Don't add $link_static_flag; only + -all-static should do that. + * mdemo/configure.in: Revert part of the previous delta. + * mdemo/configure.in: Don't use -static on AIX4.1. * mdemo/Makefile.am: Likewise. diff --git a/ltmain.in b/ltmain.in index 7f354769b..72b319cf5 100644 --- a/ltmain.in +++ b/ltmain.in @@ -1115,11 +1115,11 @@ compiler." ;; -static) - # If we have no pic_flag, then this is the same as -all-static. - if test -z "$pic_flag" && test -n "$link_static_flag"; then - compile_command="$compile_command $link_static_flag" - finalize_command="$finalize_command $link_static_flag" - fi + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. continue ;; diff --git a/mdemo/configure.in b/mdemo/configure.in index 669b7ce38..2708f9a74 100644 --- a/mdemo/configure.in +++ b/mdemo/configure.in @@ -23,13 +23,6 @@ else fi AC_SUBST(STATIC) -case $host_os in -dnl aix 4.1 provides dlopen() through -lsvld, but this library can't -dnl be linked statically. -aix4.[[01]]*) - STATIC= ;; -esac - AC_CHECK_HEADERS(math.h) AC_CHECK_LIBM