From: Amos Jeffries Date: Tue, 8 Sep 2009 01:20:21 +0000 (+1200) Subject: Bug 2735: Incomplete -fhuge-objects detection X-Git-Tag: SQUID_3_2_0_1~733 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93d935e041ca5b145657d2cd1d5d30526f337696;p=thirdparty%2Fsquid.git Bug 2735: Incomplete -fhuge-objects detection --- diff --git a/acinclude.m4 b/acinclude.m4 index 3fa8a95a6f..95e7a8827a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -72,8 +72,8 @@ dnl AC_DEFUN([AC_TEST_CHECKFORHUGEOBJECTS],[ AC_MSG_CHECKING([whether compiler accepts -fhuge-objects]) AC_CACHE_VAL([ac_cv_test_checkforhugeobjects],[ - ac_cv_test_checkforhugeobjects=`echo "int foo;" > conftest.cc -${CXX} -Werror -fhuge-objects -c conftest.cc 2>/dev/null + ac_cv_test_checkforhugeobjects=`echo "int main(int argc, char **argv) { int foo; }" > conftest.cc +${CXX} -Werror -fhuge-objects -o conftest.bin conftest.cc 2>/dev/null res=$? rm -f conftest.* echo yes