1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Set -fPIC only on some selected files.

Noticed by:	kris
Tested on:	pluto1 (ia64)
This commit is contained in:
Alex Dupre 2004-03-10 11:34:02 +00:00
parent 292ce44495
commit 83d2ee1f01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103517
2 changed files with 15 additions and 1 deletions

View File

@ -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."

View File

@ -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).