aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/golem
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-03-20 07:01:48 +0800
committerkris <kris@FreeBSD.org>2004-03-20 07:01:48 +0800
commit4e5bfe827e1c552188130aa61d2cf1333229bbde (patch)
treefc29d0fce29c7748cac60f07bcf808ce773ebe89 /x11-wm/golem
parent9e0920fc08a27e70e947e66d688f46c4767c7f56 (diff)
downloadfreebsd-ports-gnome-4e5bfe827e1c552188130aa61d2cf1333229bbde.tar.gz
freebsd-ports-gnome-4e5bfe827e1c552188130aa61d2cf1333229bbde.tar.zst
freebsd-ports-gnome-4e5bfe827e1c552188130aa61d2cf1333229bbde.zip
Better fix for amd64 (and ia64, omitted in previous); only compile with
-fPIC those files that require it.
Diffstat (limited to 'x11-wm/golem')
-rw-r--r--x11-wm/golem/Makefile3
-rw-r--r--x11-wm/golem/files/patch-plugins::Makefile.plugin.in10
2 files changed, 10 insertions, 3 deletions
diff --git a/x11-wm/golem/Makefile b/x11-wm/golem/Makefile
index 9463619b9448..7c9c1a5e7897 100644
--- a/x11-wm/golem/Makefile
+++ b/x11-wm/golem/Makefile
@@ -33,7 +33,4 @@ GNU_CONFIGURE= yes
MANCOMPRESSED= yes
MAN1= golem.1
-.if ${MACHINE_ARCH:L} == "amd64"
-CFLAGS+= -fPIC
-.endif
.include <bsd.port.mk>
diff --git a/x11-wm/golem/files/patch-plugins::Makefile.plugin.in b/x11-wm/golem/files/patch-plugins::Makefile.plugin.in
new file mode 100644
index 000000000000..59401a922859
--- /dev/null
+++ b/x11-wm/golem/files/patch-plugins::Makefile.plugin.in
@@ -0,0 +1,10 @@
+--- plugins/Makefile.plugin.in.orig Fri Mar 19 15:00:46 2004
++++ plugins/Makefile.plugin.in Fri Mar 19 15:00:57 2004
+@@ -1,6 +1,6 @@
+ # plugin makefiles include this
+ CC= @CC@
+-CFLAGS= @CFLAGS@ -I../../src/ -I../include/ @X_CFLAGS@
++CFLAGS= @CFLAGS@ -I../../src/ -I../include/ -fPIC @X_CFLAGS@
+ CFLAGS+= @DEFS@
+ LDFLAGS= @SHARED_FLAG@
+