[Top][All Lists]

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

libtool question

From: Bob Rossi
Subject: libtool question
Date: Mon, 1 May 2006 22:01:32 -0400
User-agent: Mutt/1.5.9i


I have a project called CGDB that uses a library from another project
called gdbmi. The gdbmi project only creates a library. The two projects
are packaged together and look like 

where cgdb/ has all the stuff for cgdb and cgdb/lib/gdbmi/ is all the
stuff for the gdbmi package.

The gdbmi project has it's own script and the CGDB script does AC_CONFIG_SUBDIRS([lib/gdbmi]).

gdbmi used to use AC_PROG_RANLIB. By doing this, it would create a
libgdbmi.a and the CGDB package would do 

cgdb_LDFLAGS = \


cgdb_LDADD = ... -lgdbmi ...

My first question is, does it even make sense for the cgdb
files to use the LDFLAGS, DEPENDENCIES and LDADD variables for a library
that is created in a sub If this isn't the way to do it,
what is?

My second question is, now that I'm switching over to libtool, can I
still depend on the libgdbmi.a file to be in the gdbmi builddir after I
type make? It seems as if libtool creates the libraries during the 'make
install' instead of during the make phase.

Sorry for all the questions, I'm new to libtool.

Bob Rossi

reply via email to

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