[Top][All Lists]

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

libtest_la_LIBADD bug?

From: NFRA visitor
Subject: libtest_la_LIBADD bug?
Date: Wed, 01 May 2002 11:46:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1

Dear libtool maintainers,

I'm trying to include a convenience library (which is in a subdirectory of the main library) into the main library. This isn't working for me.


convenience library: src/sub/testsub.c src/sub/testsub.h: compiled into libtestsub.la main library: src/test.c src/test.h: together with libtestsub.la: compiled into libtest.la

The bug is that the object testsub.o from sub/libtestsub.la is not included in libtest.la (or actually libtest.a).

I use the following line in src/Makefile.am to do this:

libtest_la_LIBADD = sub/libtestsub.la

I've included a libtoolbug.tgz which demonstrates the problem:

tar zxvf libtoolbug.tgz
cd libtoolbug
mkdir build
cd build
ar t src/.libs/libtest.a

BUG: the testsub.o object is not included in the library.

Note that I've added the line AC_DISABLE_SHARED in configure.in otherwise this wouldn't be possible at all.

The question is: Is this really a bug or should I be doing this a different way?

Your help is greatly appreciated.

Klaas Jan Wierenga

p.s.: ./config.guess returns

Attachment: libtoolbug.tgz
Description: Binary data

reply via email to

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