bug-libtool
[Top][All Lists]
Advanced

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

DLL extension bug(s)?


From: Lapo Luchini
Subject: DLL extension bug(s)?
Date: Thu, 23 Dec 2004 17:46:44 +0100
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.
I'm working on Cygwin and I'm trying compiling a native sqlite using
option -m-nocygwin.
It all works perfectly except that the library gets named
libsqlite3-0.exe instead of .dll.
I quickly examined the 204251-byte-sized libtool that got generated
during configure and I noticed that while the extension is got from
the variable $shrext the file didn't init it at all, but did init a
$shrext_cmds variable indeed, which is never ever used in the whole
script.
So I made the change in libtool.diff1 and all went ok.
I was pretty much happy and ready to write to this mailing list when I
also tried compiling the Java JNI binding for SQLite (the original
reason I wanted to compile SQLite native): same problem. The "dll"
generated is libsqlite_jni-0.exe.
So I said.. eheh gotcha, and tried to apply the same patch to the (to
my surprise smaller: 160625 bytes) local libtool. To no avail.
Examining it I actuyally discovered that there was no mention of
$shrext_cmds or $shrext, except from the definition of the first. But
the extensione seemed to be got from $shared_ext, which was missing.
So I made the change in libtool.diff2 and all went ok.

It all seems a bit strange to me.... I also tried reading the "full"
libtool (instead of the locallly installed-by-configure one) and I
noticed that it referred to all three variables, in different parts.
But I know libtool by far too little to figure out what's going out...

Lapo

SHA-1 sums:
e61da13ed89b3d6eb60e831389db9add804148ea libtool.diff1
2cf48c38f41a2ab22e721daaffcb62ba2050418f libtool.diff2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEUEARECAAYFAkHK9nMACgkQaJiCLMjyUvvuRACg5C3YnejXvUPoKzNgfxAGA5gI
PzoAl3DlkfJXr11y5+mAQr/S0SA8I/E=
=3F1S
-----END PGP SIGNATURE-----

--- libtool.orig        2004-12-22 17:36:59.420878400 +0100
+++ libtool     2004-12-23 17:33:54.414798600 +0100
@@ -126,11 +126,11 @@
 
 # Old archive suffix (normally "a").
 libext="a"
 
 # Shared library suffix (normally ".so").
-shrext_cmds='.dll'
+shrext='.dll'
 
 # Executable file suffix (normally "").
 exeext=""
 
 # Additional compiler flags for building library objects.
@@ -6833,11 +6834,11 @@
 
 # Old archive suffix (normally "a").
 libext="a"
 
 # Shared library suffix (normally ".so").
-shrext_cmds='.dll'
+shrext='.dll'
 
 # Executable file suffix (normally "").
 exeext=""
 
 # Additional compiler flags for building library objects.
--- libtool.orig        2004-12-23 17:28:46.684240000 +0100
+++ libtool     2004-12-23 17:31:25.162120000 +0100
@@ -126,11 +126,11 @@
 
 # Old archive suffix (normally "a").
 libext="a"
 
 # Shared library suffix (normally ".so").
-shrext_cmds='.dll'
+shared_ext='.dll'
 
 # Executable file suffix (normally "").
 exeext=""
 
 # Additional compiler flags for building library objects.
@@ -5422,11 +5423,11 @@
 
 # Old archive suffix (normally "a").
 libext="a"
 
 # Shared library suffix (normally ".so").
-shrext_cmds='.dll'
+shared_ext='.dll'
 
 # Executable file suffix (normally "").
 exeext=""
 
 # Additional compiler flags for building library objects.

reply via email to

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