summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2011-06-15 19:15:50 +0000
committercognet <cognet@FreeBSD.org>2011-06-15 19:15:50 +0000
commitba7785e90e31eac86aa7ae4ffcc9b8f9a074fd49 (patch)
treef89abe12953b18249dc9cbf93249cc8c1b2c0fb7
parent5bae35960fde0c01978cdf16744ed8bdccaef959 (diff)
downloadFreeBSD-src-ba7785e90e31eac86aa7ae4ffcc9b8f9a074fd49.zip
FreeBSD-src-ba7785e90e31eac86aa7ae4ffcc9b8f9a074fd49.tar.gz
Add -ffreestanding to the command line, so taht inflate.c compiles and link
properly with llvm. PR: arm/156771 Submitted by: Damjan Marion <damjan dot marion at gmail DOT com>
-rw-r--r--sys/conf/Makefile.arm3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm
index 756945d..d099256 100644
--- a/sys/conf/Makefile.arm
+++ b/sys/conf/Makefile.arm
@@ -108,7 +108,8 @@ ${KERNEL_KO}.tramp: ${KERNEL_KO} $S/$M/$M/inckern.S $S/$M/$M/elf_trampoline.c
gzip -9 ${KERNEL_KO}.tmp
eval $$(stat -s ${KERNEL_KO}.tmp.gz) && \
echo "#define KERNCOMPSIZE $$st_size" >>opt_kernname.h
- ${CC} -O2 -DKZIP -I. -I$S -c $S/kern/inflate.c -o inflate-tramp.o
+ ${CC} -O2 -ffreestanding -DKZIP -I. -I$S -c $S/kern/inflate.c -o \
+ inflate-tramp.o
${CC} -O -nostdlib -I. -I$S -Xlinker -T -Xlinker ldscript.$M.tramp \
-DKZIP tmphack.S $S/$M/$M/elf_trampoline.c inflate-tramp.o \
$S/$M/$M/inckern.S ${FILES_CPU_FUNC} -o ${KERNEL_KO}.gz.tramp
OpenPOWER on IntegriCloud