diff options
author | emaste <emaste@FreeBSD.org> | 2016-01-11 00:43:50 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-01-11 00:43:50 +0000 |
commit | 3066f138bc3bf99f5cf6ec9412903d206c329cc7 (patch) | |
tree | 35061f0a7c74838402d7b6896685dbded35304d5 /sys/boot/efi/boot1 | |
parent | d10ff89a31425b9a2c8478ba1f7a305136b260b1 (diff) | |
download | FreeBSD-src-3066f138bc3bf99f5cf6ec9412903d206c329cc7.zip FreeBSD-src-3066f138bc3bf99f5cf6ec9412903d206c329cc7.tar.gz |
MFC r281027: Clean up more x86 only options in the efi code.
Diffstat (limited to 'sys/boot/efi/boot1')
-rw-r--r-- | sys/boot/efi/boot1/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/boot/efi/boot1/Makefile b/sys/boot/efi/boot1/Makefile index d9d8256..ddf3147 100644 --- a/sys/boot/efi/boot1/Makefile +++ b/sys/boot/efi/boot1/Makefile @@ -32,7 +32,11 @@ FILES= boot1.efi boot1.efifat FILESMODE_boot1.efi= ${BINMODE} LDSCRIPT= ${.CURDIR}/../loader/arch/${MACHINE}/ldscript.${MACHINE} -LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared -Wl,-znocombreloc +LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared + +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +LDFLAGS+= -Wl,-znocombreloc +.endif ${PROG}: ${LDSCRIPT} @@ -75,6 +79,7 @@ CLEANFILES= boot1.efifat .include <bsd.prog.mk> +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" beforedepend ${OBJS}: machine x86 CLEANFILES+= machine x86 boot1.efi @@ -84,3 +89,4 @@ machine: x86: ln -sf ${.CURDIR}/../../../x86/include x86 +.endif |