summaryrefslogtreecommitdiff
path: root/devel/mime
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-03-22 13:06:48 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-03-22 13:06:48 +0000
commit49643b85ab569d862163b2d0eb7aec5d1fdc377e (patch)
treec1e967d06036069a62669db0c2df8df0cb74c37b /devel/mime
parentOnly the shared library needs -fPIC (diff)
Build only the shared library with -fPIC
Notes
Notes: svn path=/head/; revision=104927
Diffstat (limited to 'devel/mime')
-rw-r--r--devel/mime/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/mime/Makefile b/devel/mime/Makefile
index b31419581854..6566d62eb5ba 100644
--- a/devel/mime/Makefile
+++ b/devel/mime/Makefile
@@ -14,7 +14,10 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= C library to parse mime data
GNU_CONFIGURE= yes
-CFLAGS+="-fPIC"
+USE_REINPLACE= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e "s,-fpic,-fpic -fPIC,g" ${WRKSRC}/Makefile.in
post-install:
@${LDCONFIG} -m ${PREFIX}/lib