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:
Vendored
+22
@@ -708,6 +708,7 @@ XAPIANCXXFLAGS
|
||||
HAVE_MKDTEMP
|
||||
NOQTMAKE
|
||||
NOCMDLINE
|
||||
NOPIC
|
||||
LIBOBJS
|
||||
LTLIBOBJS'
|
||||
ac_subst_files=''
|
||||
@@ -719,6 +720,7 @@ with_inotify
|
||||
with_fam
|
||||
enable_xattr
|
||||
enable_camelcase
|
||||
enable_pic
|
||||
with_gui
|
||||
with_x
|
||||
'
|
||||
@@ -1373,6 +1375,9 @@ Optional Features:
|
||||
manual" and "my sql manual" are the same, but not
|
||||
the same as "mysql manual" (in phrases only and you
|
||||
could raise the phrase slack to get a match).
|
||||
--enable-pic Compile library objects as position independant
|
||||
code. This is necessary for building the php
|
||||
extension.
|
||||
|
||||
Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
@@ -3878,6 +3883,22 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
# Build PIC objects for the library. This is necessary when building the
|
||||
# php extension, would be useful for the others, and costs little. I wonder
|
||||
# if this should be made the default.
|
||||
# Not by default as these are little used for now.
|
||||
# Check whether --enable-pic was given.
|
||||
if test "${enable_pic+set}" = set; then
|
||||
enableval=$enable_pic; picEnabled=$enableval
|
||||
else
|
||||
picEnabled=no
|
||||
fi
|
||||
|
||||
if test X$picEnabled = Xyes ; then
|
||||
NOPIC=""
|
||||
else
|
||||
NOPIC="#"
|
||||
fi
|
||||
|
||||
|
||||
for ac_func in mkdtemp
|
||||
@@ -6636,6 +6657,7 @@ QTRECOLL_DATADIR=${m_datadir}/recoll
|
||||
|
||||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files mk/localdefs"
|
||||
|
||||
ac_config_files="$ac_config_files recollinstall"
|
||||
|
||||
Reference in New Issue
Block a user