From 0a3a1861a58d5d0811d0e5ca52b0a1b32583ebb0 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Thu, 5 Apr 2012 12:05:08 +0100 Subject: [PATCH] malloc test makes cross compile fail, add CFLAGS_FOR_HOST to allow universal binaries on OSX --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 7363de6b..3ee82666 100644 --- a/configure.ac +++ b/configure.ac @@ -31,7 +31,6 @@ AC_C_CONST AC_C_BIGENDIAN # Checks for library functions. -AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_CHECK_FUNCS([getcwd strchr]) @@ -74,8 +73,10 @@ AC_SUBST(PSPSDK_CXXFLAGS) # Turn on all warnings (for host programs). if test x$ac_compiler_gnu = xyes; then - CFLAGS="$CFLAGS -Wall" + CFLAGS="$CFLAGS $CFLAGS_FOR_HOST -Wall" fi +AC_SUBST(CFLAGS) +AC_SUBST(LDFLAGS) AC_CONFIG_FILES([Makefile src/Makefile