diff options
author | krion <krion@FreeBSD.org> | 2004-03-18 00:02:44 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-03-18 00:02:44 +0800 |
commit | 54dae021698fe4a4006f5a7a2178c29087d85f77 (patch) | |
tree | 2bf750c039db04e6f813356f75829aa86c79f7e5 /www | |
parent | 6dd7d61518cbc078ef80dee9fe70f68e0d1a72db (diff) | |
download | freebsd-ports-gnome-54dae021698fe4a4006f5a7a2178c29087d85f77.tar.gz freebsd-ports-gnome-54dae021698fe4a4006f5a7a2178c29087d85f77.tar.zst freebsd-ports-gnome-54dae021698fe4a4006f5a7a2178c29087d85f77.zip |
- Don't define -fPIC to all achitectures but only for AMD64
PR: ports/64357
Submitted by: maintainer
Diffstat (limited to 'www')
-rw-r--r-- | www/sidplug/Makefile | 8 | ||||
-rw-r--r-- | www/sidplug/files/patch-Makefile | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/www/sidplug/Makefile b/www/sidplug/Makefile index 49f470dfd64d..dfbdc97aa32d 100644 --- a/www/sidplug/Makefile +++ b/www/sidplug/Makefile @@ -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> diff --git a/www/sidplug/files/patch-Makefile b/www/sidplug/files/patch-Makefile index d5d7229bba9d..791abe72a5c9 100644 --- a/www/sidplug/files/patch-Makefile +++ b/www/sidplug/files/patch-Makefile @@ -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 |