mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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.
This commit is contained in:
19
sim/m32c/configure
vendored
19
sim/m32c/configure
vendored
@@ -691,6 +691,7 @@ PACKAGE
|
||||
C_DIALECT
|
||||
RANLIB
|
||||
AR
|
||||
CFLAGS_FOR_BUILD
|
||||
CC_FOR_BUILD
|
||||
INSTALL_DATA
|
||||
INSTALL_SCRIPT
|
||||
@@ -6756,17 +6757,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
|
||||
@@ -11220,7 +11221,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11223 "configure"
|
||||
#line 11224 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@@ -11326,7 +11327,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11329 "configure"
|
||||
#line 11330 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
||||
Reference in New Issue
Block a user