diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-01 17:16:23 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 08:22:07 -0400 |
commit | aa0fca163e1736e158fd3922cbbc31b85c9c7df7 (patch) | |
tree | ece0136b2492db8771756b3214a5fa2cab121f63 /sim/pru | |
parent | 5ee0bc23a68fe2a6a7717b31fda1db878b2c9764 (diff) | |
download | binutils-gdb-aa0fca163e1736e158fd3922cbbc31b85c9c7df7.tar.gz |
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/pru')
-rw-r--r-- | sim/pru/ChangeLog | 4 | ||||
-rwxr-xr-x | sim/pru/configure | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sim/pru/ChangeLog b/sim/pru/ChangeLog index 9f5464ab6dc..ac947a3ddcc 100644 --- a/sim/pru/ChangeLog +++ b/sim/pru/ChangeLog @@ -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. diff --git a/sim/pru/configure b/sim/pru/configure index 6bb27f7f4a7..1f2c9cdc98f 100755 --- a/sim/pru/configure +++ b/sim/pru/configure @@ -687,7 +687,9 @@ RANLIB AR LDFLAGS_FOR_BUILD CFLAGS_FOR_BUILD +RANLIB_FOR_BUILD CC_FOR_BUILD +AR_FOR_BUILD INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM @@ -6851,11 +6853,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 @@ -6864,6 +6870,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 @@ -11189,7 +11197,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11192 "configure" +#line 11200 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11295,7 +11303,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11298 "configure" +#line 11306 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |