How to add COMPILE and LINK flags to config.m4 file?
| From: | Arjun Jain | Date: | Wed, 02 Mar 2005 07:51:49 +0000 |
| Subject: | How to add COMPILE and LINK flags to config.m4 file? | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-2106@lists.php.net to get a copy of this message | ||
Hello everyone,
I am wring a C++ extension which uses a shared libraty "pistore".
My config.m4 file looks something like this:
--------------------------------------------------
PHP_ARG_WITH(pitest, for pitest support,
[ --with-pitest Include pitest support])PHP_ADD_INCLUDE(inc)
PHP_ADD_LIBRARY(rt, , PITEST_SHARED_LIBADD)PHP_ADD_LIBRARY(pistore, , PITEST_SHARED_LIBADD) PHP_ADD_LIBRARY(pthread, , PITEST_SHARED_LIBADD) PHP_NEW_EXTENSION(pitest, pitest.cpp, $ext_shared) PHP_REQUIRE_CXX() fi -------------------------------------------------- How do I add COMPILE_FLAGS and LINK_FLAGS to this, so that the configure script that is generated by phpize has the required flags? COMPILE_FLAGS := -DPOSIX -DNDEBUG -O3 -pthread -fnon-call-exceptions LINK_FLAGS := -O3 -pthread -fnon-call-exceptions Thanking you in advance, Regards aj http://arjun.notlong.com