On Mon, Sep 19, 2011 at 03:34:22PM +0200, Alessandro Candini wrote: > Hi everyone. > I have a problem making ltdl library work with some C++ code. > I have implemented my personal version of the example at the end of > Chapter 7 in the book "Autotools" by John Calcote. > Basically it is the same, but I have C++ source files and I use g++ > instead of gcc. > 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 > > And I noticed that during compilation the fPIC flag is used although > I removed every reference to it in all my Makefile.am files.
You are using libtool which works out sensible flags, and fPIC may be such a flag, so it doesn't need to appear in your Makefile.am. Maybe you could send us the output of "libtool --config" ? Cheers, Patrick _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool