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/igen | |
parent | 5ee0bc23a68fe2a6a7717b31fda1db878b2c9764 (diff) | |
download | fsf-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/igen')
-rw-r--r-- | sim/igen/ChangeLog | 4 | ||||
-rw-r--r-- | sim/igen/local.mk | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog index 84b9e67..aebd251 100644 --- a/sim/igen/ChangeLog +++ b/sim/igen/ChangeLog @@ -1,3 +1,7 @@ +2021-05-04 Mike Frysinger <vapier@gentoo.org> + + * local.mk (igen/libigen.a): New target. + 2021-05-02 Mike Frysinger <vapier@gentoo.org> * lf.h: Include ansidecl.h. diff --git a/sim/igen/local.mk b/sim/igen/local.mk index 10f0f6d..f224572 100644 --- a/sim/igen/local.mk +++ b/sim/igen/local.mk @@ -48,6 +48,12 @@ noinst_LIBRARIES += %D%/libigen.a %C%_igen_SOURCES = %D%/igen.c %C%_igen_LDADD = %D%/libigen.a +# These rules are copied from automake, but tweaked to use FOR_BUILD variables. +igen/libigen.a: $(igen_libigen_a_OBJECTS) $(igen_libigen_a_DEPENDENCIES) $(EXTRA_igen_libigen_a_DEPENDENCIES) igen/$(am__dirstamp) + $(AM_V_at)-rm -f $@ + $(AM_V_AR)$(AR_FOR_BUILD) $(ARFLAGS) $@ $(igen_libigen_a_OBJECTS) $(igen_libigen_a_LIBADD) + $(AM_V_at)$(RANLIB_FOR_BUILD) $@ + %D%/igen$(EXEEXT): $(%C%_igen_OBJECTS) $(%C%_igen_DEPENDENCIES) %D%/$(am__dirstamp) $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_igen_OBJECTS) $(%C%_igen_LDADD) |