Fixed FreeBSD and some Linux compilations#1
Fixed FreeBSD and some Linux compilations#1jrhigueras wants to merge 6 commits intomyfarms:masterfrom
Conversation
|
Hey @DontCryAndPlay! Thanks for making a PR. I've got to be honest, I don't know anything about this repo and anyone who does has left our company. I attempted to build this but I'm a little lost on what do do. Running If you could provide assistance so that I can test this out, that would be greatly appreciated. |
|
Hey @adamk33n3r. Thanks for your feedback. First, it doesn't detects the For those reasons, I've rewrote the config.m4 file on my repo to match the current OS and it works so easy as: And optionally: For Debian and derivatives: You can have a look to it at: https://github.com/DontCryAndPlay/php_lp_solve and try to compile that one to see if it works or not. |
The
config.m4file has been modified in order to match current FreeBSD and Linux configurations.Also, on
hash.cmalloc.hinclude has been changed tostdlib.has it throws errors on FreeBSD.The
./configurescript will try to automatically discover the correct lpsolve library and itslp_lib.h. If the library is not correctly discovered it will throw an error and--with-phplpsolve55=DIRparameter should be set on./configurein order to work.A very basic test has been included and it can be executed via
make test.Current compilation instructions: