summaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-10-31 13:20:13 +0545
committerMike Frysinger <vapier@gentoo.org>2022-11-02 20:59:14 +0545
commitfde7c6bf646146aa342919b413dff07f558d55dc (patch)
tree5b617116d058a48dcd7af66cba9f149759de1afc /sim/configure
parente4f2bc9c05303d399093a8b944ce4b07fa86c513 (diff)
downloadbinutils-gdb-fde7c6bf646146aa342919b413dff07f558d55dc.tar.gz
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.
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure8
1 files changed, 6 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure
index dac7f085be1..5283ef9c0dc 100755
--- a/sim/configure
+++ b/sim/configure
@@ -903,6 +903,7 @@ PKG_CONFIG
RANLIB
AR
LDFLAGS_FOR_BUILD
+CPPFLAGS_FOR_BUILD
CFLAGS_FOR_BUILD
RANLIB_FOR_BUILD
CC_FOR_BUILD
@@ -4999,12 +5000,14 @@ 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
@@ -5014,6 +5017,7 @@ fi
+
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
@@ -12771,7 +12775,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12774 "configure"
+#line 12778 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12877,7 +12881,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12880 "configure"
+#line 12884 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H