summaryrefslogtreecommitdiffstats
path: root/irc/ircservices
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-03-10 11:34:02 +0000
committerale <ale@FreeBSD.org>2004-03-10 11:34:02 +0000
commit5972679384a448c68f8ee76006631d73a6fd12a9 (patch)
treef5384c3a1e8045f8ea4d33618236efe917af731e /irc/ircservices
parentaa0d32f9b7336cfdf7d44ea0909ffe9756eb5dc0 (diff)
downloadFreeBSD-ports-5972679384a448c68f8ee76006631d73a6fd12a9.zip
FreeBSD-ports-5972679384a448c68f8ee76006631d73a6fd12a9.tar.gz
Set -fPIC only on some selected files.
Noticed by: kris Tested on: pluto1 (ia64)
Diffstat (limited to 'irc/ircservices')
-rw-r--r--irc/ircservices/Makefile2
-rw-r--r--irc/ircservices/files/patch-modules::Makerules14
2 files changed, 15 insertions, 1 deletions
diff --git a/irc/ircservices/Makefile b/irc/ircservices/Makefile
index 2ae0d4b..d8f9f53 100644
--- a/irc/ircservices/Makefile
+++ b/irc/ircservices/Makefile
@@ -27,7 +27,7 @@ USE_GMAKE= yes
DIST_SUBDIR= ${PORTNAME}
-CONFIGURE_ARGS= -prefix ${PREFIX} -cflags "${CFLAGS} -fPIC" -cc "${CC}"
+CONFIGURE_ARGS= -prefix ${PREFIX} -cflags "${CFLAGS}" -cc "${CC}"
post-install:
@${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/ircservices.sh.sample startup file."
diff --git a/irc/ircservices/files/patch-modules::Makerules b/irc/ircservices/files/patch-modules::Makerules
new file mode 100644
index 0000000..c59df60
--- /dev/null
+++ b/irc/ircservices/files/patch-modules::Makerules
@@ -0,0 +1,14 @@
+--- modules/Makerules.orig Wed Mar 10 03:22:00 2004
++++ modules/Makerules Wed Mar 10 03:14:17 2004
+@@ -168,6 +168,11 @@
+ @rm -f $@
+ @ln -s $(TARGET).o $@
+
++.compiled-check.o .compiled-extsyms.o .compiled-main.o: $(TARGET).c $(DEPS) $(INCLUDES2)
++ $(CC) $(CFLAGS) -fPIC -I$(TOPDIR) -c $< -o $(TARGET).o
++ @rm -f $@
++ @ln -s $(TARGET).o $@
++
+ # Compile a source file into an object file suitable for use in a static
+ # module. This is used with the main object file of a module to generate
+ # unique names for exported module symbols (init_module and the like).
OpenPOWER on IntegriCloud