]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2735: Incomplete -fhuge-objects detection
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Sep 2009 01:20:21 +0000 (13:20 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Sep 2009 01:20:21 +0000 (13:20 +1200)
acinclude.m4

index 3fa8a95a6f7a84964e6f5796fd4ffe03e5034c3b..95e7a8827aad661c555dcf3a9d4e786461f68f51 100644 (file)
@@ -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