mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Only use -fPIC when building boot1.efi for x86.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
3252a3c107
commit
8ab49d66d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281300
@ -15,7 +15,6 @@ INTERNALPROG=
|
||||
# architecture-specific loader code
|
||||
SRCS= boot1.c reloc.c start.S
|
||||
|
||||
CFLAGS+= -fPIC
|
||||
CFLAGS+= -I.
|
||||
CFLAGS+= -I${.CURDIR}/../include
|
||||
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_CPUARCH}
|
||||
@ -35,6 +34,7 @@ LDSCRIPT= ${.CURDIR}/../loader/arch/${MACHINE_CPUARCH}/ldscript.${MACHINE_CPUARC
|
||||
LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
||||
CFLAGS+= -fPIC
|
||||
LDFLAGS+= -Wl,-znocombreloc
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user