]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Make sure $ac_cv_prog_cc_pic_works and $ac_cv_prog_cc_static_works
authorOssama Othman <othman@cs.wustl.edu>
Sun, 5 Dec 1999 00:35:57 +0000 (00:35 +0000)
committerOssama Othman <ossama@debian.org>
Sun, 5 Dec 1999 00:35:57 +0000 (00:35 +0000)
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.

ltcf-cxx.sh

index 46596d55e05bbcd311d5fb3696d2533c2a773c2c..ac0006b373bcc59cd81621c85ba02d9c4db0aac4 100644 (file)
@@ -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'