From: Amos Jeffries Date: Fri, 2 Oct 2009 08:07:55 +0000 (+1300) Subject: Bug 2735: Incomplete -fhuge-objects detection X-Git-Tag: SQUID_3_0_STABLE20~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8cc30e3c58430fda77407f35bcf9a88d2fbf09a;p=thirdparty%2Fsquid.git Bug 2735: Incomplete -fhuge-objects detection --- diff --git a/acinclude.m4 b/acinclude.m4 index ec8cc4bd15..43d4af62cc 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