From: Ossama Othman Date: Mon, 31 Jan 2000 00:15:31 +0000 (+0000) Subject: * libtool.m4 (lt_cv_cc_needs_belf): Set the test language to C X-Git-Tag: release-1-3d~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1f191549b7278f50bb38054c7ecd45dfd8088ac;p=thirdparty%2Flibtool.git * libtool.m4 (lt_cv_cc_needs_belf): Set the test language to C prior to executing the test that checks if the C compiler needs "-belf." Reported by Chris Butler --- diff --git a/ChangeLog b/ChangeLog index 0b813e3ee..644682f6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-01-30 Ossama Othman + + * libtool.m4 (lt_cv_cc_needs_belf): Set the test language to C + prior to executing the test that checks if the C compiler needs + "-belf." + Reported by Chris Butler + 2000-01-28 Gary V. Vaughan * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use changequote to diff --git a/libtool.m4 b/libtool.m4 index 954412974..1f3559e2f 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -137,7 +137,10 @@ case "$lt_target" in SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) + [AC_LANG_SAVE + AC_LANG_C + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_RESTORE]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS"