Only the shared library needs to be built with -fPIC

This commit is contained in:
Tilman Keskinoz 2004-03-22 13:32:40 +00:00
parent 5b694f4b61
commit 31c33906f5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104931
2 changed files with 11 additions and 4 deletions

View file

@ -17,8 +17,4 @@ COMMENT= A tiny text editor, with a number of useful programming features
GNU_CONFIGURE= yes
USE_PERL5= yes
.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= "-fPIC"
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,11 @@
--- src/modules/perlapi/Makefile.orig Mon Mar 22 14:29:51 2004
+++ src/modules/perlapi/Makefile Mon Mar 22 14:29:59 2004
@@ -8,7 +8,7 @@
include ../Makefile.module
-CFLAGS+= `perl -MExtUtils::Embed -e ccopts`
+CFLAGS+= `perl -MExtUtils::Embed -e ccopts` -fPIC
XSUBPPDIR= `perl -MConfig -e 'print $$Config{privlib}'`/ExtUtils
XSUBPP= $(XSUBPPDIR)/xsubpp