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
+9 -7
View File
@@ -4,17 +4,19 @@ Recoll PHP extension:
This has minimum features for now.
The sample/ subdirectory has a minimal script which demonstrates the
The php/sample/ subdirectory has a minimal script which demonstrates the
interface.
Building the extension needs the librcl.a library (recoll-xxx/lib/librcl.a)
to have been built with PIC objects. This will be handled by the Recoll
build system in the future, but, for now, if using gcc, just add -fPIC
-DPIC to LOCALCXXFLAGS inside mk/localdefs, and run "make clean;make" inside
lib/ . For other compilers, adjust to taste :)
to have been built with PIC objects.
The recoll/ subdirectory has the C++ code and the build script
Use "configure --enable-pic" in the top Recoll directory, then
"make". There is no significant disadvantage in using PIC objects for
everything so you need not bother having different builds for the
extensions and the programs.
The php/recoll/ subdirectory has the C++ code and the build script
(make.sh). You'll need to "make install" after building.
If you want to clean up the recoll/ directory, you can run phpize --clean
If you want to clean up the php/recoll/ directory, you can run phpize --clean
in there.