From f0a4a6be40496469ee45b884c662408d0643b7fd Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Fri, 19 Mar 2004 23:01:48 +0000 Subject: [PATCH] Better fix for amd64 (and ia64, omitted in previous); only compile with -fPIC those files that require it. --- x11-wm/golem/Makefile | 3 --- x11-wm/golem/files/patch-plugins::Makefile.plugin.in | 10 ++++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 x11-wm/golem/files/patch-plugins::Makefile.plugin.in 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 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@ +