On Sat, Nov 22, 2008 at 08:13:26PM +1100, Gavin Norman wrote:
> Okay, libcommon is compiled with -fPIC, is the issue that libtool won't
> link a static archive against a dynamic lib? Is there anyway to force
> this?

libtool refuses to link a non-PIC object into a dynamic lib.  libtool
uses the object's name to determine if the object is PIC.

you can call your PIC static lib libcommon_pic.a (proabably best to
make a copy and patch the other makefiles that need a PIC libfoo).  I
did comethign similar in the mjpegtools port long ago.


> Regards.
> 
> Gavin Norman
> M: +614 0935 4020
> E: [EMAIL PROTECTED]
> 
> On Tue, 2008-11-18 at 23:20 +1100, Gavin Norman wrote:
> 
> > I've made the port available here: http://public.rcservices.com.au/ports
> > 
> > You'll need to download the other tarballs in the directory as they are 
> > dependencies.
> > 
> > The main port is zarafa.
> > --
> > Gavin Norman
> > E: [EMAIL PROTECTED]
> > 
> > On Tue, 18 Nov 2008 7:11:19 am Jacob Meuser wrote:
> > > On Mon, Nov 17, 2008 at 11:49:26PM +1100, Gavin Norman wrote:
> > > > The ldapplugin being compiled. This is with -fPIC added to the CPPFLAGS
> > > > and after *_la_LDFLAGS, still with no success:
> > > >
> > > > /usr/local/bin/libtool  --mode=link c++  -O2 -pipe -g -Wall
> > > > -Wno-write-strings -DOPENBSD -pedantic -Wno-long-long -pthread
> > > > -L/usr/local/lib -lexecinfo -lssl -lcrypto -o ldapplugin.la -rpath
> > > > /usr/local/lib/zarafa -module -fPIC  ldapplugin_la-LDAPUserPlugin.lo
> > > > ldapplugin_la-ldappasswords.lo  ../../common/libcommon_util.la -lldap
> > > > -liconv
> > > >
> > > > *** Warning: This system can not link to static lib archive
> > > > ../../common/libcommon_util.la.
> > >
> > > so you need to make sure ../../common/libcommon_util.la is built
> > > with -fPIC.
> > 
> > 
> 
> 

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org

Reply via email to