mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
malloc test makes cross compile fail, add CFLAGS_FOR_HOST to allow universal binaries on OSX
This commit is contained in:
@@ -31,7 +31,6 @@ AC_C_CONST
|
|||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_MALLOC
|
|
||||||
AC_FUNC_MEMCMP
|
AC_FUNC_MEMCMP
|
||||||
AC_CHECK_FUNCS([getcwd strchr])
|
AC_CHECK_FUNCS([getcwd strchr])
|
||||||
|
|
||||||
@@ -74,8 +73,10 @@ AC_SUBST(PSPSDK_CXXFLAGS)
|
|||||||
|
|
||||||
# Turn on all warnings (for host programs).
|
# Turn on all warnings (for host programs).
|
||||||
if test x$ac_compiler_gnu = xyes; then
|
if test x$ac_compiler_gnu = xyes; then
|
||||||
CFLAGS="$CFLAGS -Wall"
|
CFLAGS="$CFLAGS $CFLAGS_FOR_HOST -Wall"
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(CFLAGS)
|
||||||
|
AC_SUBST(LDFLAGS)
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
Reference in New Issue
Block a user