diff options
author | shinyquagsire23 <mtinc2@gmail.com> | 2021-11-05 19:56:39 -0700 |
---|---|---|
committer | shinyquagsire23 <mtinc2@gmail.com> | 2021-11-05 19:56:39 -0700 |
commit | 1b75688d9a3cd9828f556e7c68bc65bb0268a68f (patch) | |
tree | 2e192c073bcc677ef3579ac11e28069cc263b02e /arm7 | |
parent | 04d90cff950e7a4b0505fdee9209d97bf4b8b77a (diff) |
Fix issue on MacOS where wine32on64 will crash with Bus Error 10 on linking, due to passing too many arguments
Diffstat (limited to 'arm7')
-rw-r--r-- | arm7/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arm7/Makefile b/arm7/Makefile index d142c079..67a07f26 100644 --- a/arm7/Makefile +++ b/arm7/Makefile @@ -180,7 +180,8 @@ $(BUILD_DIR)/$(LD_SCRIPT): $(LD_SPEC) $(LD_TEMPLATE) $(MAKELSF) $< $(LD_TEMPLATE) $@ $(ROM): $(O_FILES) $(BUILD_DIR)/$(LD_SCRIPT) $(BIN_FILES) - $(LD) $(LDFLAGS) $(BUILD_DIR)/$(LD_SCRIPT) -o $(ELF) $(O_FILES) $(BIN_FILES) + echo "$(O_FILES) $(BIN_FILES)" > $(ELF).objlist + $(LD) $(LDFLAGS) $(BUILD_DIR)/$(LD_SCRIPT) -o $(ELF) @$(ELF).objlist $(OBJCOPY) --update-section arm7=$@ -j arm7 $(foreach ov,$(OVERLAYS),--update-section $(ov)=$(BUILD_DIR)/$(ov).sbin -j $(ov)) $(ELF) 2>/dev/null # Make sure build directory exists before compiling anything |