libtool
[Top][All Lists]
Advanced

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

Re: Problem with check...


From: Gary V. Vaughan
Subject: Re: Problem with check...
Date: Wed, 19 Nov 2003 18:27:08 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vaillant Etienne wrote:
| Hello,
|
| I have a projet which uses automake/autoconf/libtool under cygwin but
| the problem is the same under linux.
|
| Directory organisation :
|
| .
| ./src
| ./src/p1
| ./src/p2
| ./src/p2/tests
|
| ./src/p1         --> I build a static library  : libp1.la
| ./src/p2         --> I build a static library  : libp2.la
| ./src/p2/tests --> I build some check program which verif libp2.la
| ./src              --> I build a share library : libpg.la which use
| libp1.la and libp2.la
|
| There are no problem to do this.
|
| But in ./src/p2/tests, I want creat a share library (libp2test.la) which
| has some symbol in libpg.la so I must build it after that libpg.la is
| created because under cygwin, undefied symbol is prohibed. This library
| is needed in the tests when I do a "make check".
|
| The solution is to creat "libp2test.la" when i do a make check.
|
| But how do I write .src/p2/tests/Makefile.am ?
|
| Because if i write :
|
| lib_LTLIBRARIES = libp2test.la
| libp2test_la_SOURCES=p2test.cc
| libp2test_la_LDFLAGS=-version-info 0:0:0 -no-undefined
| -L$(top_builddir)/src
| libp2test_la_LIBADD=-lpg
|
| it is going to build this share library before libpg.la so there will be
| an error.

Off the top of my head:

AM_LDFLAGS = -L$(top_builddir)/src

check_LTLIBRARIES = libp2test.la
libp2test_la_DEPENDENCIES = $(top_builddir)/src/libpg.la
libp2test_la_SOURCES = p2test.cc
libp2test_la_LDFLAGS = -version-info 0:0:0 -no-undefined
libp2test_la_LIBADD = -lpg

$(top_builddir)/src/libpg.la:
        @cd $(top_builddir)/src && $(MAKE) $(MAKE_FLAGS) libpg.la
- --
~  ())_.  Gary V. Vaughan    gary@(lilith.warpmail.net|gnu.org)
~  ( '/   Research Scientist http://www.oranda.demon.co.uk       ,_())____
~  / )=   GNU Hacker         http://www.gnu.org/software/libtool  \'      `&
`(_~)_   Tech' Author       http://sources.redhat.com/autobook   =`---d__/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/u7X8FRMICSmD1gYRAtn6AKCB6nKXkKsMEPc7F/9D06V+saypoACfaC7d
x0XgL2nyKoEOKhCy3ddZbu4=
=Fzgb
-----END PGP SIGNATURE-----





reply via email to

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