linking shared lib in new extension
| From: | Keyser Soze | Date: | Sun, 03 Mar 2002 23:12:05 +0000 |
| Subject: | linking shared lib in new extension | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-80659@lists.php.net to get a copy of this message | ||
Hi,
I'm developing a new extension for php, and I need to compile it with a
shared lib....in PHP I added the lines in config.m4:
PHP_ADD_LIBRARY(mylib,,MYEXT_SHARED_LIBADD)
and Makefile.in:
MYEXT_SHARED_LIBADD = -lmylib
LTLIBRARY_SHARED_LIBADD = $(MYEXT_SHARED_LIBADD)
In php it compiles well....but when I'm going to compile the apache it
doesn't link with mylib, I must put it manually in src/Makefile
How can I make this automatic???
Thanks,
Keyser Soze