summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-10 09:26:35 +0000
committerobrien <obrien@FreeBSD.org>2002-05-10 09:26:35 +0000
commitce04447cdfa298204b0d3e6fe6cc24686c935354 (patch)
tree129629b06e5fc8f495f4447b72ce9c193c4cae7d /sys/boot/efi
parent5eb5239e7b9b006e0d68a2a4dd7bb7fdc40f042d (diff)
downloadFreeBSD-src-ce04447cdfa298204b0d3e6fe6cc24686c935354.zip
FreeBSD-src-ce04447cdfa298204b0d3e6fe6cc24686c935354.tar.gz
-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so they are easier to see)
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/libefi/Makefile2
-rw-r--r--sys/boot/efi/loader/Makefile1
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/efi/libefi/Makefile b/sys/boot/efi/libefi/Makefile
index 2e7bff2..18f26a8 100644
--- a/sys/boot/efi/libefi/Makefile
+++ b/sys/boot/efi/libefi/Makefile
@@ -15,7 +15,7 @@ SRCS+= delay.c efifs.c efinet.c elf_freebsd.c bootinfo.c pal.s
SRCS+= efifpswa.c
.endif
-CFLAGS+= -fpic
+CFLAGS+= -ffreestanding -fpic
CFLAGS+= -I${.CURDIR}/../include
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
diff --git a/sys/boot/efi/loader/Makefile b/sys/boot/efi/loader/Makefile
index 7911280..5881829 100644
--- a/sys/boot/efi/loader/Makefile
+++ b/sys/boot/efi/loader/Makefile
@@ -11,6 +11,7 @@ STRIP= # We must not strip loader.efi at install time.
SRCS+= main.c conf.c dev_net.c
+CFLAGS+= -ffreestanding
# Enable BootForth
BOOT_FORTH= yes
CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
OpenPOWER on IntegriCloud