mirror of
https://github.com/chocolate-doom/buildscripts.git
synced 2024-11-22 03:41:41 +00:00
Use cross-compile cpp, not system cpp, to find libs.
This commit is contained in:
parent
d75abef070
commit
9fd14604e5
1 changed files with 3 additions and 1 deletions
|
@ -252,7 +252,7 @@ autogen_module() {
|
|||
have_header() {
|
||||
headerfile=$1
|
||||
|
||||
echo "#include <$headerfile>" | cpp $SDL_CFLAGS $CPPFLAGS > /dev/null
|
||||
echo "#include <$headerfile>" | $CPP $SDL_CFLAGS $CPPFLAGS > /dev/null
|
||||
|
||||
result=$?
|
||||
|
||||
|
@ -315,6 +315,7 @@ build_libpng=false
|
|||
INSTALL_DIR=$CHOCOLATE_DOOM_DIR/install
|
||||
INSTALL_COMMAND=
|
||||
INSTALL_MESSAGE="Installing..."
|
||||
CPP=cpp
|
||||
GIT_CO_NAME=chocolate-doom-git
|
||||
HOST_ARG=
|
||||
|
||||
|
@ -332,6 +333,7 @@ for arg in "$@"; do
|
|||
;;
|
||||
-host=*)
|
||||
HOST_ARG="-$arg"
|
||||
CPP=${arg/-host=/}-cpp
|
||||
# Build libraries from scratch when cross compiling:
|
||||
force_build_sdl=true
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue