mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 21:40:03 +00:00
Force string.o to be in boot for gcc builds (#1948)
In retail builds, memcpy is linked in code, not boot, but GCC likes to call memcpy when copying structs so currently GCC builds immediately crash in __osInitialize_common.
This commit is contained in:
parent
7e8b9144c2
commit
d4d7512cb6
1 changed files with 3 additions and 1 deletions
4
spec
4
spec
|
@ -66,7 +66,7 @@ beginseg
|
|||
#endif
|
||||
include "$(BUILD_DIR)/src/libultra/os/unmaptlball.o"
|
||||
include "$(BUILD_DIR)/src/libultra/io/epidma.o"
|
||||
#if OOT_DEBUG
|
||||
#if OOT_DEBUG || COMPILER_GCC
|
||||
include "$(BUILD_DIR)/src/libultra/libc/string.o"
|
||||
#endif
|
||||
include "$(BUILD_DIR)/src/libultra/os/invalicache.o"
|
||||
|
@ -532,6 +532,8 @@ beginseg
|
|||
include "$(BUILD_DIR)/src/libultra/gu/lookathil.o"
|
||||
#if !OOT_DEBUG
|
||||
include "$(BUILD_DIR)/src/libultra/libc/xprintf.o"
|
||||
#endif
|
||||
#if !OOT_DEBUG && !COMPILER_GCC
|
||||
include "$(BUILD_DIR)/src/libultra/libc/string.o"
|
||||
#endif
|
||||
include "$(BUILD_DIR)/src/libultra/io/sp.o"
|
||||
|
|
Loading…
Reference in a new issue