From 2518b329ca40fc7d130b2ce5d09b8dca4599d2b8 Mon Sep 17 00:00:00 2001 From: Alejandro Pulver Date: Mon, 15 Jan 2007 15:25:15 +0000 Subject: - Fix building on amd64 (move -fPIC from LDFLAGS to CFLAGS). Reported by: pointyhat --- games/q2pro/files/patch-build__ref_newgl.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 games/q2pro/files/patch-build__ref_newgl.mk (limited to 'games/q2pro') 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)) -- cgit v1.2.3