libtool
[Top][All Lists]
Advanced

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

Re: libtool: lib: command not found


From: raziel
Subject: Re: libtool: lib: command not found
Date: Fri, 5 Sep 2014 19:26:49 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

Thank you! Peter your comments pointed me in the right direction, CXX
and LD in the env seem to be not needed --host is enough, LT_INIT need
[win32-dll] and libexample_la_LDFLAGS need -no-undefined.

Got static and shared dll built.

Cheers

Alex

> Ok, this is strange.
> 
> You have this in your "libtool --config":
> 
>       # Commands used to build an old-style archive.
>       old_archive_cmds="lib -OUT:\$oldlib\$oldobjs\$old_deplibs"
> 
> Looking in the libtool.m4 file, the only way for "lib -OUT..."
> to be chosen is
> 
>       if test yes = "$lt_use_gnu_ld_interface"
> 
> doesn't match.
> 
> 
> Your "libtool --config" also has:
> 
>       # Whether we are building with GNU ld or not.
>       with_gnu_ld="no"
> 
> which seems strange on Debian.
> 
> Looking in your config.log, I find
> 
>       configure:4994: checking for ld used by i686-w64-mingw32-gcc
>       configure:5061: result: i686-w64-mingw32-g++-win32
>       configure:5068: checking if the linker (i686-w64-mingw32-g++-win32) is 
> GNU ld
>       configure:5083: result: no
> 
> which is the cause of the above strangeness. What is the output from:
> 
>       i686-w64-mingw32-g++-win32 -v


Using built-in specs.
COLLECT_GCC=i686-w64-mingw32-g++-win32
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-w64-mingw32/4.9-win32/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../../src/configure --build=i586-linux-gnu
--prefix=/usr --includedir='/usr/include' --mandir='/usr/share/man'
--infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var
--libexecdir='/usr/lib/gcc-mingw-w64' --disable-maintainer-mode
--disable-dependency-tracking --prefix=/usr --enable-shared
--enable-static --disable-multilib --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --libdir=/usr/lib
--enable-libstdcxx-time=yes --with-tune=generic
--enable-version-specific-runtime-libs --enable-fully-dynamic-string
--enable-libgomp --enable-languages=c,c++,fortran,objc,obj-c++
--enable-lto --with-plugin-ld --enable-threads=win32
--program-suffix=-win32 --program-prefix=i686-w64-mingw32-
--target=i686-w64-mingw32 --with-as=/usr/bin/i686-w64-mingw32-as
--with-ld=/usr/bin/i686-w64-mingw32-ld
Thread model: win32
gcc version 4.9.1 (GCC) 


> Libtool assumes that GNU ld produces something that matches:
> 
>       *GNU* | *'with BFD'*
> 
> Cheers,
> Peter
> 



reply via email to

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