libtool
[Top][All Lists]
Advanced

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

Re: libtool insists on using shared library


From: Ralf Wildenhues
Subject: Re: libtool insists on using shared library
Date: Thu, 18 Jan 2007 13:24:13 +0100
User-agent: Mutt/1.5.13 (2007-01-09)

Hello Tom,

* Tim Dijkstra wrote on Thu, Jan 18, 2007 at 12:48:19PM CET:
> 
>       ../libtool --tag=CC --mode=link gcc  -g -O2 -o splashy -all-static  
> splashy-splashy_main.o   -lglib-2.0 

>       gcc -g -O2 -o splashy -static splashy-splashy_main.o  
> /usr/lib/libglib-2.0.so -lrt
> 
> But that fails;  /usr/lib/libglib-2.0.so obviously is a dynamic library.
> 
> /usr/lib/libglib-2.0.a is present on my system, and if I
> replace /usr/lib/libglib-2.0.so with -lglib-2.0 it works as expected.

Let me guess:  /usr/lib/libglib-2.0.la exists but sets old_library to
empty?  If yes: packaging bug (the .la file tells libtool that no static
library exists), if no, please rerun the libtool link command with
--debug added, post the output (packed), and also post
  ../libtool --config

output.

Thanks,
Ralf




reply via email to

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