summaryrefslogtreecommitdiff
path: root/editors/led
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-03-22 13:32:40 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-03-22 13:32:40 +0000
commit31c33906f5c4906d65a07808c830f766b07c5c80 (patch)
tree9443bf31429dae1d5ccff732565e7a319417fe8f /editors/led
parentRemove empty last line. (diff)
Only the shared library needs to be built with -fPIC
Notes
Notes: svn path=/head/; revision=104931
Diffstat (limited to 'editors/led')
-rw-r--r--editors/led/Makefile4
-rw-r--r--editors/led/files/patch-src-modules-perlapi-Makefile11
2 files changed, 11 insertions, 4 deletions
diff --git a/editors/led/Makefile b/editors/led/Makefile
index 52b88653c417..bb7a2249ab1d 100644
--- a/editors/led/Makefile
+++ b/editors/led/Makefile
@@ -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>
diff --git a/editors/led/files/patch-src-modules-perlapi-Makefile b/editors/led/files/patch-src-modules-perlapi-Makefile
new file mode 100644
index 000000000000..c3e4cc52bb53
--- /dev/null
+++ b/editors/led/files/patch-src-modules-perlapi-Makefile
@@ -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
+