Re: [sqlite] Fix for 32bit compilation on Solaris

2017-12-01 Thread Bob Friesenhahn

On Thu, 30 Nov 2017, Vladimir Marek wrote:


Hi,

Compilers shipped with Solaris were traditionally compiling 32bit
binaries unless specified otherwise. This changed recently, the default
is 64bit binaries. So if you want to compile 32bit object, you have to
specify -m32. That slightly breaks sqlite configuration script as it
expects 32bit output with no arguments. The fix is simple - specify
'-m32' for 32bit compilation. The change is backwards compatible, -m32
always meant 32bit objects. I am attaching the patch to latest sqlite
release.


The tcl.m4 file comes from the TEA package.  Sqlite could fix its copy 
but you should report this upstream from where it came from so that 
all Tcl extensions which update their TEA package will benefit.


See http://wiki.tcl.tk/327 and https://github.com/tcltk/tclconfig

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Fix for 32bit compilation on Solaris

2017-11-30 Thread Vladimir Marek
Hi,

Compilers shipped with Solaris were traditionally compiling 32bit
binaries unless specified otherwise. This changed recently, the default
is 64bit binaries. So if you want to compile 32bit object, you have to
specify -m32. That slightly breaks sqlite configuration script as it
expects 32bit output with no arguments. The fix is simple - specify
'-m32' for 32bit compilation. The change is backwards compatible, -m32
always meant 32bit objects. I am attaching the patch to latest sqlite
release.

Thank you
-- 
Vlad
The sqlite configuration is assuming that compiler with no -mXX flag compiles
32 bit binaries. This is no longer true, as the default is 64bit these days.
This patch fixes the 32bit compilation.

--- sqlite-autoconf-321/tea/tclconfig/tcl.m42017-11-15 
08:52:28.206926381 +
+++ sqlite-autoconf-321/tea/tclconfig/tcl.m42017-11-15 
08:52:24.892793953 +
@@ -1942,7 +1944,7 @@ AC_DEFUN([TEA_CONFIG_CFLAGS], [
# not be necessary for extensions.
SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
])])
-   ])
+   ], [ SHLIB_LD="$SHLIB_LD -m32" ])
], [
case $system in
SunOS-5.[[1-9]][[0-9]]*)
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users