delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/14/22:40:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48041592.1010400@users.sourceforge.net>
Date: Mon, 14 Apr 2008 21:40:18 -0500
From: "Yaakov (Cygwin Ports)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] NEW: libtool-2.2.2-2 / Updated: libltdl7-2.2.2-2
References: <announce DOT 48038853 DOT 7090707 AT cwilson DOT fastmail DOT fm> <4803AA47 DOT 70501 AT users DOT sourceforge DOT net> <4803E38F DOT 9080708 AT cwilson DOT fastmail DOT fm>
In-Reply-To: <4803E38F.9080708@cwilson.fastmail.fm>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Charles Wilson wrote:
| I think that libtool hasn't been told that LDFLAGS should include
| -L/usr/lib/w32api.  I think this is something that should be passed on
| the invocation line in your makefile -- maybe AM_LDFLAGS needs to be set?

As I'm sure you're aware, /usr/lib/w32api is in ld's default library
path, so -L/usr/lib/w32api should never be necessary.  Nor was it
required with libtool-1.5; this is a regression, but I'm not sure what
the cause is.

In /usr/bin/libtool, I see the following:

sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"

which is hard-coded for cygwin in _LT_SYS_DYNAMIC_LINKER (prev.
AC_LIBTOOL_SYS_DYNAMIC_LINKER).  But with the libtool script in the
package I'm trying to build, I find:

sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

This didn't happen in another package, so I dug a bit further.  If I run
./config.lt in this particular package, then the correct
$sys_lib_search_path_spec appears, but when I run './config.status
libtool', then I get the latter.

Both packages use CC and CXX tags, and but the one that works correctly
had warnings during autoreconf:

configure.ac:169: warning: LT_OUTPUT was called before LT_LANG
/usr/share/aclocal/libtool.m4:775: LT_LANG is expanded from...
configure.ac:169: the top level
/usr/share/aclocal/libtool.m4:5282: _LT_PROG_CXX is expanded from...
/usr/share/aclocal/libtool.m4:5305: _LT_LANG_CXX_CONFIG is expanded from...
/usr/share/aclocal/libtool.m4:792: _LT_LANG is expanded from...
autoreconf-2.61: configure.ac: tracing
configure.ac:169: warning: LT_OUTPUT was called before LT_LANG
aclocal.m4:790: LT_LANG is expanded from...
configure.ac:169: the top level

where the package with the buggy libtool had no such warnings.

Any ideas?

| $ ./func_win32_libid.sh /usr/lib/w32api/libwinmm.a
| x86 archive import

That's good to know.


Yaakov

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIBBTapiWmPGlmQSMRCKi1AKD3rbfJKHjtOEKwIaXCu4pajiMDKQCg7pG2
64NcQWMFaGoEb9t3V8dmFX4=
=79fv
-----END PGP SIGNATURE-----

--
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