libtool
[Top][All Lists]
Advanced

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

Re: ltdl and C++


From: Nick Bowler
Subject: Re: ltdl and C++
Date: Tue, 20 Sep 2011 11:04:46 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On 2011-09-19 15:34 +0200, Alessandro Candini wrote:
> Configure and make works but I do not produce a dynamic linked 
> executable, unlike the original John's example:
> ../src $ ldd hello
>      not a dynamic executable

This is normal.  When libtool creates an executable that links against
other libtool libraries in your source tree, it creates a shell script
to run the program in-place so that you don't need to install it.  You
haven't shown us your Makefile.am, but I assume it contains something
like hello_LDFLAGS = -dlopen plugin.la.

You appear to be running ldd on that shell script, so of course it's
"not a dynamic executable".  The actual binary that gets installed is
located in .libs/.

If you want to run ldd on an uninstalled executable, do it through
libtool:

  libtool --mode=execute ldd hello

Hope that helps,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)



reply via email to

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