[Monetdb-developers] php module compiling
The following code compiles the php module: gcc -fpic -DCOMPILE_DL=1 `php-config --includes` `monet-config --cflags` -c -o monetdb.o php_monetdb.c gcc -shared `php-config --libs` `monet-config --libs` -lMapi -rdynamic -o monetdb.so monetdb.o And installing: cp monetdb.so `php-config --extension-dir` Maybe someone (stefan?) with more knowledge of the build process can integrate this stuff. The only thing is that monet-config --cflags does not list $MONET_PREFIX/include/MonetDB/C as include dir, which is the directory Mapi.h resides in. Can this be fixed, or is this done on purpose? -- Arjan Scherpenisse Centrum voor Wiskunde en Informatica, Amsterdam, the Netherlands
Hmm, fixed some bugs in the commands, these are the right ones: gcc -fpic -DCOMPILE_DL_MONETDB=1 `php-config --includes` `monet-config --cflags` -c -o monetdb.o php_monetdb.c gcc -shared `monet-config --libs` -lMapi -rdynamic -o monetdb.so monetdb.o
participants (2)
-
Arjan Scherpenisse
-
Arjan Scherpenisse