aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-01 17:16:23 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-04 08:22:07 -0400
commitaa0fca163e1736e158fd3922cbbc31b85c9c7df7 (patch)
treeece0136b2492db8771756b3214a5fa2cab121f63 /sim/m32c
parent5ee0bc23a68fe2a6a7717b31fda1db878b2c9764 (diff)
downloadfsf-binutils-gdb-aa0fca163e1736e158fd3922cbbc31b85c9c7df7.zip
fsf-binutils-gdb-aa0fca163e1736e158fd3922cbbc31b85c9c7df7.tar.gz
fsf-binutils-gdb-aa0fca163e1736e158fd3922cbbc31b85c9c7df7.tar.bz2
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.
Diffstat (limited to 'sim/m32c')
-rw-r--r--sim/m32c/ChangeLog4
-rwxr-xr-xsim/m32c/configure12
2 files changed, 14 insertions, 2 deletions
diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog
index df06256..a7351d6 100644
--- a/sim/m32c/ChangeLog
+++ b/sim/m32c/ChangeLog
@@ -1,5 +1,9 @@
2021-05-04 Mike Frysinger <vapier@gentoo.org>
+ * configure: Regenerate.
+
+2021-05-04 Mike Frysinger <vapier@gentoo.org>
+
* load.c (m32c_load): Use BFD_VMA_FMT and drop casts.
2021-05-02 Mike Frysinger <vapier@gentoo.org>
diff --git a/sim/m32c/configure b/sim/m32c/configure
index efb30d5..4d5f524 100755
--- a/sim/m32c/configure
+++ b/sim/m32c/configure
@@ -689,7 +689,9 @@ RANLIB
AR
LDFLAGS_FOR_BUILD
CFLAGS_FOR_BUILD
+RANLIB_FOR_BUILD
CC_FOR_BUILD
+AR_FOR_BUILD
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
@@ -6849,11 +6851,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
@@ -6862,6 +6868,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
@@ -11187,7 +11195,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11190 "configure"
+#line 11198 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11293,7 +11301,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11296 "configure"
+#line 11304 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H