$ make darwin
make target=FreeBSD \
CC=gcc CXX=g++ \
CFLAGS='-Wall -pipe -O3' \
CXFLAGS='-Wall -pipe -O3' \
LDFLAGS= \
LIBS='-lstdc++' \
opt='' \
crafty-make
gcc -Wall -pipe -O3 -DFreeBSD -c crafty.c
In file included from search.c:1,
from crafty.c:13:
chess.h:28:22: error: malloc.h: No such file or directory
The offending code in chess.h is:
Code: Select all
#if !defined(IPHONE)
# include <malloc.h>
#endif
This fix allows the build to succeed whether or not IPHONE is defined.
Code: Select all
#if !defined(__APPLE__)
# include <malloc.h>
#endif