bug-libtool
[Top][All Lists]
Advanced

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

libtool 2.2 - import library detection failure when cross compiling to m


From: Jakub Bogusz
Subject: libtool 2.2 - import library detection failure when cross compiling to mingw32
Date: Wed, 12 Mar 2008 23:23:16 +0100
User-agent: Mutt/1.5.17 (2007-11-01)

Hello,

I noticed that libtool sometimes rejects to create shared library using -l...
to link with some import libraries failing to recognize those import
libraries as such.

It happens if AC_CANONICAL_HOST is not issued before AC_PROG_LIBTOOL/LT_INIT
- because libtool macros AC_REQUIRE([AC_CANONICAL_HOST]) _after_ processing
LT_INIT options, and that's win32-dll LT_INIT option processing which
calls AC_CHECK_TOOL for objdump, which is used to recognize type of ar
archives.

When AC_CHECK_TOOL is issued before AC_CANONICAL_HOST, instead of finding
cross version of objdump it finds native (Linux/x86 in my case) objdump,
which can't recognize archive which contains PE objects.

So I see two possible solutions:
- move AC_REQUIRE([AC_CANONICAL...]) from _LT_SETUP to beginning of
  LT_INIT
- instead of calling AC_CHECK_TOOL in option processing, set some
  variable to call them later, after ensuring AC_CANONICAL_HOST is called


-- 
Jakub Bogusz    http://qboosh.pl/




reply via email to

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