mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
sim: add support for build-time ar & ranlib
This is needed when building for a target whose ar & ranlib are incompatible with the current build system. For example, building for Windows on a Linux system. Then manually import the automake rule for libigen.a, but tweak the tool variables to use the FOR_BUILD variants.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2021-05-04 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* configure: Regenerate.
|
||||
|
||||
2021-05-01 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* config.in, configure: Regenerate.
|
||||
|
12
sim/m32r/configure
vendored
12
sim/m32r/configure
vendored
@ -690,7 +690,9 @@ RANLIB
|
||||
AR
|
||||
LDFLAGS_FOR_BUILD
|
||||
CFLAGS_FOR_BUILD
|
||||
RANLIB_FOR_BUILD
|
||||
CC_FOR_BUILD
|
||||
AR_FOR_BUILD
|
||||
INSTALL_DATA
|
||||
INSTALL_SCRIPT
|
||||
INSTALL_PROGRAM
|
||||
@ -6864,11 +6866,15 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
||||
|
||||
|
||||
if test "x$cross_compiling" = "xno"; then
|
||||
: "${AR_FOR_BUILD:=\$(AR)}"
|
||||
: "${CC_FOR_BUILD:=\$(CC)}"
|
||||
: "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
|
||||
: "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
|
||||
: "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
|
||||
else
|
||||
: "${AR_FOR_BUILD:=ar}"
|
||||
: "${CC_FOR_BUILD:=gcc}"
|
||||
: "${RANLIB_FOR_BUILD:=ranlib}"
|
||||
: "${CFLAGS_FOR_BUILD:=-g -O}"
|
||||
: "${LDLFAGS_FOR_BUILD:=}"
|
||||
fi
|
||||
@ -6877,6 +6883,8 @@ 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
|
||||
@ -11202,7 +11210,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11205 "configure"
|
||||
#line 11213 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -11308,7 +11316,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11311 "configure"
|
||||
#line 11319 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
Reference in New Issue
Block a user