bug#50083: Buildi on Solaris x64

Kiyoshi KANAZAWA <[email protected]>
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <[email protected]>
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

_______________________________________________
Bug-libtool mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-libtool
sample_patch (text/x-diff, 737 B)
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'
   ;;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.