diff options
author | Andrew Waterman <andrew@sifive.com> | 2022-09-28 01:47:24 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2022-09-28 01:47:24 -0700 |
commit | 8af5c39de1d929a0858127073002c2c7d165f15b (patch) | |
tree | b98362fb420c27aa655f932217fb8dc4b6cc0da5 /Makefile.in | |
parent | 55c66198fd6bc8f1b16e67a33d2865ca3e7269cb (diff) | |
download | riscv-isa-sim-8af5c39de1d929a0858127073002c2c7d165f15b.zip riscv-isa-sim-8af5c39de1d929a0858127073002c2c7d165f15b.tar.gz riscv-isa-sim-8af5c39de1d929a0858127073002c2c7d165f15b.tar.bz2 |
Fix build using Xcode 14
Don't include .a files in other .a files. Doing so trips a sanity
check in the Xcode 14 toolchain, because the included .a files are
not themselves mach-o format, even though their contents are.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 41bc5e1..afa4203 100644 --- a/Makefile.in +++ b/Makefile.in @@ -241,7 +241,7 @@ $(2)_lib_libnames := $$(patsubst %, lib%.a, $$($(2)_lib_libs)) $(2)_lib_libarg := $$(patsubst %, -l%, $$($(2)_lib_libs)) $(2)_lib_libnames_shared := $$(if $$($(2)_install_shared_lib),lib$(1).so,) -lib$(1).a : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames) +lib$(1).a : $$($(2)_objs) $$($(2)_c_objs) $(AR) rcs $$@ $$^ lib$(1).so : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames_shared) $$($(2)_lib_libnames) $(LINK) -shared -o $$@ $(if $(filter Darwin,$(shell uname -s)),-install_name $(install_libs_dir)/$$@) $$^ $$($(2)_lib_libnames) $(LIBS) |