php-git icon indicating copy to clipboard operation
php-git copied to clipboard

README instructions for compiling

Open MagicalTux opened this issue 10 years ago • 2 comments

The "how to build" instructions in the readme file will probably work fine on 32bits machines, however compiling a static version of libgit2 to then compile a dynamic php module will not work (linker will complain about -fPIC).

Easy fix by replacining line cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DBUILD_CLAR=OFF .. with: cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DBUILD_CLAR=OFF -DCMAKE_C_FLAGS=-fPIC ..

MagicalTux avatar Apr 28 '14 12:04 MagicalTux

:+1: i have the same question

duguying avatar Apr 28 '14 23:04 duguying

Mark is back ! ;-) Nice to see you again

smalot avatar Apr 29 '14 13:04 smalot