Subject: Re: libtool bug
From: Jan Nieuwenhuizen <[email-masked]>
To: [email-masked]
Date: Tue, 12 Oct 2004 01:26:06 +0200

Han-Wen Nienhuys writes:

> At some point, make issues the following command line, 
>
> 	/bin/bash ../libtool --mode=install /usr/bin/install -c
> 		libguile-srfi-srfi-1-v-2.la
> 		/usr/local/lib/libguile-srfi-srfi-1-v-2.la
> 	libtool: install: warning: relinking `libguile-srfi-srfi-1-v-2.la'
> 	(cd /home/Hanwen/src/guile-1.7.1/srfi; /bin/bash ../libtool
> 	--mode=relink gcc -g -O2 -Wall -Wmissing-prototypes -Werror -o
> 	libguile-srfi-srfi-1-v-2.la -rpath /usr/local/lib -no-undefined
> 	-export-dynamic -version-info 2:0:0 srfi-1.lo ../libguile/libguile.la
> 	-lpthread -lgmp -lcrypt -lm )
> 	libtool: link: warning: `/lib/libgmp.la' seems to be moved
>
> which is translated to the following GCC command line
>
> 	gcc -shared .libs/srfi-1.o -L/lib -L/usr/lib
> 	-L/home/Hanwen/src/guile-1.7.1/libguile-ltdl/.libs -L/usr/local/lib
> 	-lguile -lpthread -lgmp -lcrypt -o
> 	.libs/cygguile-srfi-srfi-1-v-2-2.dll -Wl,--image-base=0x10000000
> 	-Wl,--out-implib,.libs/libguile-srfi-srfi-1-v-2.dll.a
>
> this fails, because gcc cannot figure out that
> /home/Hanwen/src/guile-1.7.1/libguile-ltdl/.libs/libguile.dll.a is the
                                       ^^^^^
I guess that should read

    /home/Hanwen/src/guile-1.7.1/libguile/.libs/libguile.dll.a

ie, it seems that libtool drops the ../libguile/ part from
../libguile.la when creating the gcc command line.

Jan.

-- 
Jan Nieuwenhuizen <[email-masked]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/