From 8445d6503611f8e7cc786a7cd3830e3957a10001 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Thu, 14 Jul 2005 23:21:22 +0000 Subject: [PATCH] Add -fPIC to CPPFLAGS on !i386 to fix build Reported by: kris mail --- devel/libtar/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devel/libtar/Makefile b/devel/libtar/Makefile index 7de203875e10..77fe76ab04ae 100644 --- a/devel/libtar/Makefile +++ b/devel/libtar/Makefile @@ -18,6 +18,7 @@ USE_GMAKE= yes GNU_CONFIGURE= yes INSTALLS_SHLIB= yes CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" post-install: ${INSTALL_DATA} ${WRKSRC}/lib/libtar.so.0 ${PREFIX}/lib @@ -25,4 +26,9 @@ post-install: .include .include "files/manpages" + +.if ${ARCH}!="i386" +CPPFLAGS+= -fPIC +.endif + .include