aboutsummaryrefslogtreecommitdiff
path: root/games/q2pro
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-01-15 15:25:15 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-01-15 15:25:15 +0000
commit2518b329ca40fc7d130b2ce5d09b8dca4599d2b8 (patch)
treee9f0c3bd2bcc2c0ea78eda555f09e96a7741dfad /games/q2pro
parente6951b3559647c94fa1883b3f92e7cadee33b97d (diff)
downloadports-2518b329ca40fc7d130b2ce5d09b8dca4599d2b8.tar.gz
ports-2518b329ca40fc7d130b2ce5d09b8dca4599d2b8.zip
- Fix building on amd64 (move -fPIC from LDFLAGS to CFLAGS).
Reported by: pointyhat
Notes
Notes: svn path=/head/; revision=182438
Diffstat (limited to 'games/q2pro')
-rw-r--r--games/q2pro/files/patch-build__ref_newgl.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/games/q2pro/files/patch-build__ref_newgl.mk b/games/q2pro/files/patch-build__ref_newgl.mk
new file mode 100644
index 000000000000..6d0c290960ec
--- /dev/null
+++ b/games/q2pro/files/patch-build__ref_newgl.mk
@@ -0,0 +1,14 @@
+--- build/ref_newgl.mk.orig Mon Jan 15 12:13:34 2007
++++ build/ref_newgl.mk Mon Jan 15 12:20:31 2007
+@@ -9,9 +9,9 @@
+ VPATH += $(INSTALLDIR)/ref_newgl \
+ $(INSTALLDIR)/ref_shared
+
+-LDFLAGS += -lm -ljpeg -shared -fPIC
++LDFLAGS += -lm -ljpeg -shared
+ CFLAGS += -DOPENGL_RENDERER -DTRUECOLOR_RENDERER -DUSE_LIBJPEG
+-CFLAGS_LINUX += -DUSE_LIBPNG
++CFLAGS_LINUX += -DUSE_LIBPNG -fPIC
+ LDFLAGS_LINUX += -lpng
+
+ ifeq (win32,$(TARGETOS))