- Fix building on amd64 (move -fPIC from LDFLAGS to CFLAGS).

Reported by:	pointyhat
This commit is contained in:
Alejandro Pulver 2007-01-15 15:25:15 +00:00
parent e6951b3559
commit 2518b329ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182438

View file

@ -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))