[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with check...
From: |
Vaillant Etienne |
Subject: |
Problem with check... |
Date: |
Fri, 14 Nov 2003 16:24:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031022 Debian/1.5-1.he-1 |
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.
Thank
Etienne
- Problem with check...,
Vaillant Etienne <=