From 1a2b9cfe2721ec3b734b1ec1589fd977d502b680 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 16 Sep 2009 20:38:57 +1200 Subject: [PATCH] Bug 2735: Incomplete -fhuge-objects detection --- acinclude.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3