diff options
author | Mattia Dongili <malattia@linux.it> | 2006-06-04 23:45:35 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-06-04 23:45:35 +0200 |
commit | 88a74559baf756b954c6d07d4fc81042f3796916 (patch) | |
tree | 68ffa01e6fc070cb3beef13dfb0d47600c0d822d /Makefile | |
parent | 9ea61bd54075c8de93d6204e783ff53d2666d6fb (diff) |
Use -fPIC when building the driver as a shared object.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -32,6 +32,7 @@ ifeq ($(BUILD_MODULAR),y) INPUT_MODULE_DIR = $(DESTDIR)$(shell pkg-config xorg-server --variable=moduledir)/input SYNAPTICS_DRV = synaptics_drv.so LDCOMBINEFLAGS = -shared + PICFLAG = $(call check_gcc,-fPIC,) X_INCLUDES_ROOT = $(INSTALLED_X) SDKDIR = $(shell pkg-config xorg-server --variable=sdkdir) ALLINCLUDES = -I. -I$(INSTALLED_X)/include/X11 \ @@ -81,7 +82,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,) CDEBUGFLAGS = -O2 -CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) -DVERSION="\"$(VERSION)\"" -DVERSION_ID="$(VERSION_ID)" +CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(PICFLAG) $(ALLDEFINES) -DVERSION="\"$(VERSION)\"" -DVERSION_ID="$(VERSION_ID)" CFLAGSCLIENT = $(CDEBUGFLAGS) $(CCOPTIONS) -DVERSION="\"$(VERSION)\"" -DVERSION_ID="$(VERSION_ID)" -I$(X_INCLUDES_ROOT)/include CC = gcc |