Re: :dll and linking to other libraries

Bram Moolenaar <[email protected]> Sun, 25 Jul 2004 16:05:01 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Magnus Therning wrote:

> I have the following rule:
> 
>  :dll sqlite : $sqlite_source
>  :attr { add_LIBS = -ltcl -lm -ldl } $(DLLPRE)sqlite$(DLLSUF)
> 
> But the resulting shared lib isn't linked to any of the libraries:
> 
>  $ ldd libsqlite.so
>          statically linked
> 
> Why is it like this?

I don't understand your "ldd" command.  It should be used on a program
to show what libraries it uses.  I don't think it makes sense using it
on a library.

I also don't understand the intention of using the add_LIBS attribute on
the shared library.  Do you want to build the shared library with these
libs?  Then putting this in the :dll command might work better.

-- 
hundred-and-one symptoms of being an internet addict:
86. E-mail Deficiency Depression (EDD) forces you to e-mail yourself.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click