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/)

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool

Reply via email to