Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

README instructions for compiling #65

Open
MagicalTux opened this issue Apr 28, 2014 · 2 comments
Open

README instructions for compiling #65

MagicalTux opened this issue Apr 28, 2014 · 2 comments

Comments

@MagicalTux
Copy link

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 ..

@duguying
Copy link

👍 i have the same question

@smalot
Copy link

smalot commented Apr 29, 2014

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants