delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/11/19:26:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: libtool bug
References: <16741 DOT 49587 DOT 333388 DOT 685699 AT byrd DOT xs4all DOT nl>
From: Jan Nieuwenhuizen <janneke AT gnu DOT org>
Organization: Jan at Appel
Date: Tue, 12 Oct 2004 01:26:06 +0200
In-Reply-To: <16741.49587.333388.685699@byrd.xs4all.nl> (Han-Wen Nienhuys's message of "Fri, 8 Oct 2004 00:22:43 +0200")
Message-ID: <87vfdgu99t.fsf@peder.flower>
User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)
MIME-Version: 1.0
X-Virus-Scanned: by XS4ALL Virus Scanner
X-IsSubscribed: yes
Note-from-DJ: This may be spam

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 <janneke AT gnu DOT org> | 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019