forked from Imagelibrary/binutils-gdb
sim: split CPPFLAGS between build & host
In order to merge more common/ files into the top-level, we need to add more host flags to CPPFLAGS, and that conflicts with our current use with build-time tools. So split them apart like we do with all other build flags to avoid the issue.
This commit is contained in:
@@ -32,18 +32,21 @@ if test "x$cross_compiling" = "xno"; then
|
||||
: "${CC_FOR_BUILD:=\$(CC)}"
|
||||
: "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
|
||||
: "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
|
||||
: "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
|
||||
: "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
|
||||
else
|
||||
: "${AR_FOR_BUILD:=ar}"
|
||||
: "${CC_FOR_BUILD:=gcc}"
|
||||
: "${RANLIB_FOR_BUILD:=ranlib}"
|
||||
: "${CFLAGS_FOR_BUILD:=-g -O}"
|
||||
: "${CPPFLAGS_FOR_BUILD:=}"
|
||||
: "${LDLFAGS_FOR_BUILD:=}"
|
||||
fi
|
||||
AC_SUBST(AR_FOR_BUILD)
|
||||
AC_SUBST(CC_FOR_BUILD)
|
||||
AC_SUBST(RANLIB_FOR_BUILD)
|
||||
AC_SUBST(CFLAGS_FOR_BUILD)
|
||||
AC_SUBST(CPPFLAGS_FOR_BUILD)
|
||||
AC_SUBST(LDFLAGS_FOR_BUILD)
|
||||
|
||||
AC_SUBST(CFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user