Implemented configure --enable-pic flag to build the main lib with position-independant objects.

This avoids having to edit localdefs by hand to build the new php extension,
and voids the need for the Python module to recompile Recoll source files.
This commit is contained in:
Jean-Francois Dockes
2010-01-29 17:22:31 +01:00
parent 7ef5e08f70
commit 74be06345a
10 changed files with 227 additions and 187 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ COMMONCXXFLAGS = -I. \
-I$(depth)/utils
# We happen to be using gcc on all platforms for now. Can be overridden in
# sys file anyway
PIC_CXXFLAGS = -fPIC -DPIC
# the sys file or localdefs
SYSPICFLAGS = -fPIC -DPIC
BIGLIB = $(depth)/lib/librcl.a
+4
View File
@@ -24,10 +24,14 @@ libdir = @libdir@
RECOLL_DATADIR = ${datadir}/recoll
@NOPIC@PICFLAGS = $(SYSPICFLAGS)
LOCALCXXFLAGS = -g -O2 -Wall -Wno-unused \
$(INCICONV) $(XAPIANCXXFLAGS) $(X_CFLAGS) \
-DRECOLL_DATADIR=\"$(RECOLL_DATADIR)\" \
-DLIBDIR=\"$(libdir)\" \
$(PICFLAGS) \
@DEFS@
CXXFLAGS = @CXXFLAGS@