[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linking static libs into shared lib with libtool

From: Ron Lange
Subject: linking static libs into shared lib with libtool
Date: Mon, 19 Aug 2002 15:01:46 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

I want to link a shared php extension which is using libtool in conjuction with automake/autoconf. This .so is using other libs, which I need to be statically linked into the module.

Actually I am quite confused of the php build mechanism, modifying the config.m4 doesn't cause the static libs linked into the shared one. I modified the by inserting just '-L/pathtolibs -llibname ...' into the INCLUDES var...terrible way, I know...

Now the libs seems to be linked in, but during the use of the php-module it is concerning about unreachable shared objects, which I actually wanted to be linked statically in...

How you get libtool to link first the needed libs statically into the proper library then this lib into a shared object?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]