summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-05-16 07:32:21 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:24 +0200
commit6ad7b8219959c84c77a24c733df8c0fbed7a4c94 (patch)
tree02130fe6e94976f30670fb2f5cb00d5b0a676f95 /Makefile
parent057dd60bffc7c38cdc3c7f011cb666b34f91a3a7 (diff)
Pass -fno-pic to gcc if supported. The X driver loader can't
load PIC code and some Gentoo users have configured gcc to generate PIC code by default. (Reported by Arturo Araya <Arturo_Araya@world.oberlin.edu>.)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ea8bc8c..baccd8f 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,7 @@ check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1
CCOPTIONS = -pedantic -Wall -Wpointer-arith
CCOPTIONS += $(call check_gcc,-fno-merge-constants,)
+CCOPTIONS += $(call check_gcc,-fno-pic,)
CDEBUGFLAGS = -O2
CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) -DVERSION="\"$(VERSION)\""
CFLAGSCLIENT = $(CDEBUGFLAGS) $(CCOPTIONS) -I$(X_INCLUDES_ROOT)/include