automake
[Top][All Lists]
Advanced

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

Re: Static link against shared objects


From: Ralf Wildenhues
Subject: Re: Static link against shared objects
Date: Thu, 22 Nov 2007 09:58:02 +0100
User-agent: Mutt/1.5.17 (2007-11-13)

Hello Julien,

Please don't top-post, thanks!

* Julien TIERNY (LIFL - TELECOM Lille 1) wrote on Thu, Nov 22, 2007 at 
09:26:50AM CET:
> Le Thursday 22 November 2007 07:56:04 Ralf Wildenhues, vous avez écrit :
> > * Julien TIERNY (LIFL, TELECOM Lille 1) wrote on Wed, Nov 21, 2007 at 
> > 04:10:11PM CET:
> > > I use automake for the packaging of a software I wrote that uses third
> > > party shared libraries (at this point, everything's ok).
> > > Is it possible to force automake generate Makefiles such that the final
> > > binary program is statically linked to the third party libraries? (I've
> > > got *.so and *.a versions of the third party libraries).
> >
> > If those installed libraries are libtool libraries (a *.la file exists),
> > and your package uses libtool >= 1.5.24, then you can use the
> > -static-libtool-libs flag.

> Where should I specify such a flag in the Makefile.am?

For example:
  bin_PROGRAMS = foo
  foo_LDFLAGS = -static-libtool-libs

Cheers,
Ralf




reply via email to

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