malloc test makes cross compile fail, add CFLAGS_FOR_HOST to allow universal binaries on OSX

This commit is contained in:
Dave Murphy
2012-04-05 12:05:08 +01:00
parent 30271f6d1f
commit 0a3a1861a5

View File

@@ -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