Re: 2 problems with extension
| From: | Adam Klobukowski | Date: | Thu, 12 Jun 2008 20:21:33 +0000 |
| Subject: | Re: 2 problems with extension | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5522@lists.php.net to get a copy of this message | ||
Antony Dovgal pisze:
On 12.06.2008 15:47, Adam Klobukowski wrote:I have /usr/lib/libyamic.a I've added to my config.m4: PHP_ADD_LIBRARY_WITH_PATH(yamic, /usr/lib, GRA_SHARED_LIBADD) And now, PHP complains aboaut unresolve symbols in my extension :( Adam KlobukowskiPHP_ADD_LIBRARY_WITH_PATH() Look for examples in PECL/*/*.m4.a cannot be linked dynamically, it's a static library. You'll need .so to link it dynamically.Ok, not dynamically my mistake. So instead, I'd like to link with .a. What should I add to my config.m4?