summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/libefi
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-04-03 23:10:23 +0000
committeremaste <emaste@FreeBSD.org>2014-04-03 23:10:23 +0000
commit57c8841c16d0986e800a8b2742f7c359ebe8ba4f (patch)
tree011a4e8ec8d6cc796eef054c189700e9d89ca215 /sys/boot/efi/libefi
parent250b084dd5d35c623b7bf60d9041c2fdb5924aa6 (diff)
downloadFreeBSD-src-57c8841c16d0986e800a8b2742f7c359ebe8ba4f.zip
FreeBSD-src-57c8841c16d0986e800a8b2742f7c359ebe8ba4f.tar.gz
Add -fPIC for amd64
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/boot/efi/libefi')
-rw-r--r--sys/boot/efi/libefi/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/efi/libefi/Makefile b/sys/boot/efi/libefi/Makefile
index d0cd698..df37f31 100644
--- a/sys/boot/efi/libefi/Makefile
+++ b/sys/boot/efi/libefi/Makefile
@@ -6,6 +6,9 @@ INTERNALLIB=
SRCS= delay.c efi_console.c efinet.c efipart.c errno.c handles.c \
libefi.c time.c
+.if ${MACHINE_ARCH} == "amd64"
+CFLAGS+= -fPIC
+.endif
CFLAGS+= -I${.CURDIR}/../include
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_CPUARCH}
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
OpenPOWER on IntegriCloud