aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-02-21 22:15:03 -0500
committerMike Frysinger <vapier@gentoo.org>2021-02-28 03:14:59 -0500
commitc25ea03dd6a04f33e1d6f089a0d93658a863235b (patch)
treee1704bc9d43267db4786014a94ddfefe9a4b51b1 /sim/v850/configure
parenta3e2cc64a6ff8e4f10a9263155a409b736e0e9b8 (diff)
downloadgdb-c25ea03dd6a04f33e1d6f089a0d93658a863235b.zip
gdb-c25ea03dd6a04f33e1d6f089a0d93658a863235b.tar.gz
gdb-c25ea03dd6a04f33e1d6f089a0d93658a863235b.tar.bz2
sim: set up build-time compiler settings
Some sim dirs were already setting up CFLAGS_FOR_BUILD in inconsistent ways. Move it to a common place for reuse.
Diffstat (limited to 'sim/v850/configure')
-rwxr-xr-xsim/v850/configure19
1 files changed, 10 insertions, 9 deletions
diff --git a/sim/v850/configure b/sim/v850/configure
index 066e362..a62a7c0 100755
--- a/sim/v850/configure
+++ b/sim/v850/configure
@@ -687,6 +687,7 @@ PACKAGE
C_DIALECT
RANLIB
AR
+CFLAGS_FOR_BUILD
CC_FOR_BUILD
INSTALL_DATA
INSTALL_SCRIPT
@@ -6769,17 +6770,17 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
-# Put a plausible default for CC_FOR_BUILD in Makefile.
-if test -z "$CC_FOR_BUILD"; then
- if test "x$cross_compiling" = "xno"; then
- CC_FOR_BUILD='$(CC)'
- else
- CC_FOR_BUILD=gcc
- fi
+if test "x$cross_compiling" = "xno"; then
+ : "${CC_FOR_BUILD:=\$(CC)}"
+ : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
+else
+ : "${CC_FOR_BUILD:=gcc}"
+ : "${CFLAGS_FOR_BUILD:=-g -O}"
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
@@ -11233,7 +11234,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11236 "configure"
+#line 11237 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11339,7 +11340,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11342 "configure"
+#line 11343 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H