libtool
[Top][All Lists]
Advanced

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

Re: ltdl and C++


From: Patrick Welche
Subject: Re: ltdl and C++
Date: Tue, 20 Sep 2011 15:31:31 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

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



reply via email to

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