mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
- Don't define -fPIC to all achitectures but only for AMD64
PR: ports/64357 Submitted by: maintainer
This commit is contained in:
parent
3e09003d7d
commit
e79c352640
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104303
@ -18,6 +18,12 @@ RUN_DEPENDS= xsidplay:${PORTSDIR}/audio/xsidplay
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/lib/browser_plugins
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/npsidplug.so ${PREFIX}/lib/browser_plugins
|
||||
@ -29,4 +35,4 @@ do-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/sidplug.png ${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -11,7 +11,7 @@
|
||||
-OPTIMIZER = -O
|
||||
-CFLAGS = $(OPTIMIZER) $(PLUGIN_DEFINES)
|
||||
+CC ?= gcc
|
||||
+CFLAGS += $(PLUGIN_DEFINES) -fPIC
|
||||
+CFLAGS += $(PLUGIN_DEFINES)
|
||||
|
||||
SRC= sidplug.c npunix.c
|
||||
OBJ= sidplug.o npunix.o
|
||||
|
Loading…
Reference in New Issue
Block a user