mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Add in the emulation selection when linking... We're still not 100%
of the way there, but we're better with it. hack.so build now, but we die when we try to link it in.
This commit is contained in:
parent
9690fcee63
commit
6fb8bbf5c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=195533
@ -53,13 +53,22 @@ SYSTEM_LD+=-EB
|
||||
EXTRA_FLAGS+=-EB
|
||||
TRAMP_LDFLAGS+=-Wl,-EB
|
||||
HACK_EXTRA_FLAGS+=-EB -Wl,-EB
|
||||
.if defined(TARGET_64BIT)
|
||||
SYSTEM_LD+=-m elf64btsmip_fbsd
|
||||
HACK_EXTRA_FLAGS+=-Wl,-m,elf64btsmip_fbsd
|
||||
.endif
|
||||
.else
|
||||
CFLAGS+=-EL
|
||||
SYSTEM_LD+=-EL
|
||||
EXTRA_FLAGS+=-EL
|
||||
TRAMP_LDFLAGS+=-Wl,-EL
|
||||
HACK_EXTRA_FLAGS+=-EL -Wl,-EL
|
||||
.if defined(TARGET_64BIT)
|
||||
SYSTEM_LD+=-m elf64ltsmip_fbsd
|
||||
HACK_EXTRA_FLAGS+=-Wl,-m,elf64ltsmip_fbsd
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
||||
# We add the -fno-pic flag to kernels because otherwise performance
|
||||
# is extremely poor, as well as -mno-abicalls to force no ABI usage.
|
||||
|
Loading…
Reference in New Issue
Block a user