List Info

Thread: automake / libtool question - static libs




automake / libtool question - static libs
country flaguser name
United States
2007-04-12 10:49:12
Hi,

I am using automake/autoconf/libtool and it works fine
generating
shared libs, etc.  However, I need to make static libs now
and I can't
see how to tell libtool to do so.  I know I can pass -static
but I am
not using libtool directly, I am using it via automake.

My project has one subdir with code that is built into a
shared
library, and another subdir contains code that builds into
an
executable that uses that library.  Normally it works fine
with shared
libs, but I now want the build the library as a normal
static lib and
have the executable use that.

Any help greatly appreciated.

Thanks


Re: automake / libtool question - static libs
user name
2007-04-12 13:58:19
Hello flopbucket,

* flopbucket wrote on Thu, Apr 12, 2007 at 05:49:12PM CEST:
> 
> I am using automake/autoconf/libtool and it works fine
generating
> shared libs, etc.  However, I need to make static libs
now and I can't
> see how to tell libtool to do so.  I know I can pass
-static but I am
> not using libtool directly, I am using it via
automake.

Try 
  lib_LTLIBRARIES = libfoo.la
  libfoo_la_LDFLAGS = -static

Cheers,
Ralf



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )