diff options
author | Peter Osterlund <petero2@telia.com> | 2004-05-16 07:32:21 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:02:24 +0200 |
commit | 6ad7b8219959c84c77a24c733df8c0fbed7a4c94 (patch) | |
tree | 02130fe6e94976f30670fb2f5cb00d5b0a676f95 /Makefile | |
parent | 057dd60bffc7c38cdc3c7f011cb666b34f91a3a7 (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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |