Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2011 19:15:51 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223116 - head/sys/conf
Message-ID:  <201106151915.p5FJFpUe094749@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cognet
Date: Wed Jun 15 19:15:50 2011
New Revision: 223116
URL: http://svn.freebsd.org/changeset/base/223116

Log:
  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>

Modified:
  head/sys/conf/Makefile.arm

Modified: head/sys/conf/Makefile.arm
==============================================================================
--- head/sys/conf/Makefile.arm	Wed Jun 15 19:09:58 2011	(r223115)
+++ head/sys/conf/Makefile.arm	Wed Jun 15 19:15:50 2011	(r223116)
@@ -108,7 +108,8 @@ ${KERNEL_KO}.tramp: ${KERNEL_KO} $S/$M/$
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106151915.p5FJFpUe094749>