Re: linking php extension to third party library
| From: | Jani Taskinen | Date: | Thu, 23 Aug 2001 08:33:11 +0000 |
| Subject: | Re: linking php extension to third party library | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64136@lists.php.net to get a copy of this message | ||
Just do what the macro does:
LIBS="$LIBS /with/full/path/to/lib.a"
ie. just don't add -l there.
--Jani
On 23 Aug 2001, Shao Zhang wrote:
>Hi,
>
>I need to link one of my php extension to a third party library. The library
>is named "lib.a", I cannot copy/rename this file as it is auto generated and
>shared by others.
>
>I can link my php extension to libfoo.a by adding this line to my config.m4:
>PHP_ADD_LIBRARY_WITH_PATH(foo,
>"/work/3-sw/sp2-gwTelco/E-szhang/build.out/i386-freebsd/sm1000-OaApi")
>
>But I ran out of ideas when the library does not have a name, just lib.a.
>
>Thanks for any help in advance.
>
>Regards,
>
>Shao.
>
>