From: Ossama Othman Date: Sun, 5 Dec 1999 00:35:57 +0000 (+0000) Subject: Make sure $ac_cv_prog_cc_pic_works and $ac_cv_prog_cc_static_works X-Git-Tag: multi-language-merge-point~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f7694295fa5f2272a6817847594a29269307160;p=thirdparty%2Flibtool.git Make sure $ac_cv_prog_cc_pic_works and $ac_cv_prog_cc_static_works are unset since their C compiler cached values will override their C++ compiler specific values. Note that it was not enough to reset their values. They had to be unset. --- diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index 46596d55e..ac0006b37 100644 --- a/ltcf-cxx.sh +++ b/ltcf-cxx.sh @@ -428,6 +428,10 @@ ac_cv_prog_cc_static= ac_cv_prog_cc_no_builtin= ac_cv_prog_cc_can_build_shared=$can_build_shared +# It is not enough to reset these cached values, they must be unset. +unset ac_cv_prog_cc_pic_works +unset ac_cv_prog_cc_static_works + if test "$with_gcc" = yes; then ac_cv_prog_cc_wl='-Wl,' ac_cv_prog_cc_static='-static'