From e79c352640b1d65d1b6144d3f178ee49d99455b1 Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Wed, 17 Mar 2004 16:02:44 +0000 Subject: [PATCH] - Don't define -fPIC to all achitectures but only for AMD64 PR: ports/64357 Submitted by: maintainer --- www/sidplug/Makefile | 8 +++++++- 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 + +.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 +.include 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