Subject: bug#50083: Buildi on Solaris x64

From: Kiyoshi KANAZAWA <[email-masked]>
Date: Tue, 17 Aug 2021 08:18:42 +0900 (JST)

Hello,

Trying install libtool-2.4.6 on Solaris 11.3 x64.
$ uname -a
SunOS hidden 5.11 11.3 i86pc i386 i86pc

To build 64 bit code libtool, such as
$ ./configure CC='cc -m64'
LD_LIBRARY_PATH_64 should be used instead of LD_LIBRARY_PATH.

Sample patch is attached, although it does not have check for x64, sorry.

Regards,

--- Kiyoshi
diff -urw6 ../libtool-2.4.6.orig/m4/libtool.m4 ./m4/libtool.m4
--- ../libtool-2.4.6.orig/m4/libtool.m4	2015-01-21 01:15:19.000000000 +0000
+++ ./m4/libtool.m4	2021-08-17 08:06:08.126323313 +0000
@@ -2987,13 +2987,13 @@
 solaris*)
   version_type=linux # correct to gnu/linux during the next big refactor
   need_lib_prefix=no
   need_version=no
   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   soname_spec='$libname$release$shared_ext$major'
-  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_var=LD_LIBRARY_PATH_64
   shlibpath_overrides_runpath=yes
   hardcode_into_libs=yes
   # ldd complains unless libraries are executable
   postinstall_cmds='chmod +x $lib'
   ;;