]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2735: Incomplete -fhuge-objects detection
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 2 Oct 2009 08:07:55 +0000 (21:07 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 2 Oct 2009 08:07:55 +0000 (21:07 +1300)
acinclude.m4

index ec8cc4bd150501a118dda9963bf6be6ee1fdf9f0..43d4af62ccc2a7ac2f3b4d3d0043b094ad4bfca0 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