a libtool program

2008-09-21 Thread Qiang Zhong
Hi all:

I am a new user, In my project one source code main.c
and the library directory sundials.
main.c
|
sundials
|
|--include
|--src

the libsundials.la has been construct in src directory, my main.c file use
the libsundials.la, when I use the hand write makefile,I can compile main.c,
but when I use configure.in and makefile.am I could not ,Could somebody help
me chek
the file makefile.am where is wrong?

Thank you very much !
Eager to receive your letter!

the source cod can be download:
http://eyou.hzau.edu.cn/cgi-bin/storage_getshare?uid=zqiang320&domain=webmail.hzau.edu.cn&infotoken=0a03065uSBx5V0yXXULHtH8cBdXOo&down=no

-- 
Qiang Zhong
Key Lab of Agricultural Animal Genetics, Breeding and Reproduction of
Ministry of Education
College of Animal Sciences and Technology
Huazhong Agricultural University
Wuhan,Hubei, 430070
PR China
___
http://lists.gnu.org/mailman/listinfo/libtool


Sticky --disable-shared

2008-09-21 Thread Alessandro Vesely

Hi all,
yesterday I compiled three packages, libgcrypt, gnutls and 
courier-mta, that use one another's library. I started off building 
gcrypt as a static library to avoid cross-problems with the stable 
debian version of the same package being use by the running mail 
server. Then, I got an error building gnutls: The linker couldn't 
resolve the cry_... references to libgcrypt functions.


I write to ask if that's a bug or a feature, and if it belongs to 
libtool, gcc, or ld. The command "libtool ... -lgcrypt ..." was being 
changed to "gcc ... /usr/local/lib/libgcrypt.a ... -Wl,--rpath 
-Wl,/usr/local/lib" and resulted in an ld error. (Why?) A command line 
like "gcc ... -lgcrypt ...", reversing libtool's hard path, succeeded. 
I've only been able to cleanly build gnutls after configuring with 
--disable-shared. Ditto for courier-mta, with exchanged roles. 
Curiously, the latter package sports no shared libraries, thus the 
option must be a leftover from boilerplate (libtool?) stuff.


I think static libraries are probably safer in this case, where each 
package has a different version. However, I'm not sure why it is just 
not possible to build shared ones. Any clue?


TIA
Ale


___
http://lists.gnu.org/mailman/listinfo/libtool