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:
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user