Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Apr 2015 10:08:11 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r281300 - head/sys/boot/efi/boot1
Message-ID:  <201504091008.t39A8Bs3011276@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Thu Apr  9 10:08:10 2015
New Revision: 281300
URL: https://svnweb.freebsd.org/changeset/base/281300

Log:
  Only use -fPIC when building boot1.efi for x86.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/boot/efi/boot1/Makefile

Modified: head/sys/boot/efi/boot1/Makefile
==============================================================================
--- head/sys/boot/efi/boot1/Makefile	Thu Apr  9 10:07:06 2015	(r281299)
+++ head/sys/boot/efi/boot1/Makefile	Thu Apr  9 10:08:10 2015	(r281300)
@@ -15,7 +15,6 @@ INTERNALPROG=
 # architecture-specific loader code
 SRCS=	boot1.c reloc.c start.S
 
-CFLAGS+=	-fPIC
 CFLAGS+=	-I.
 CFLAGS+=	-I${.CURDIR}/../include
 CFLAGS+=	-I${.CURDIR}/../include/${MACHINE_CPUARCH}
@@ -35,6 +34,7 @@ LDSCRIPT=	${.CURDIR}/../loader/arch/${MA
 LDFLAGS=	-Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared
 
 .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
+CFLAGS+=	-fPIC
 LDFLAGS+=	-Wl,-znocombreloc
 .endif
 



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