Subject: [PATCH] libtool: fix sys_lib_dlsearch_path_spec for ia64 HP-UX

From: Norihiro Tanaka <[email-masked]>
Date: Sun, 30 Nov 2014 08:55:16 +0900

A dynamic linker in ia64 HP-UX does not search directories
`/usr/local/lib/hpux32', `/usr/local/lib' and `/usr/local/lib/hpux64'
without RPATH and/or LD_LIBRARY_PATH.  So if a program is linked to a
library installed in them without DT_RPATH and/or LD_LIBRARY_PATH, the
dynamic linker can not find the library.

When a program is linked to a library installed in them, this change
makes Libtool set library path to DT_RPATH of the program.

Thanks,
Norihiro
From b9564d66028de920a1a7f9aaefd6d2649ade4b25 Mon Sep 17 00:00:00 2001
From: Norihiro Tanaka <[email-masked]>
Date: Sun, 30 Nov 2014 08:31:41 +0900
Subject: [PATCH] libtool: fix sys_lib_dlsearch_path_spec for ia64 HP-UX

* m4/libtool.m4: Fix sys_lib_dlsearch_path_spec for ia64 HP-UX.
---
 m4/libtool.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 9c089e0..9f601c3 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2653,10 +2653,11 @@ hpux9* | hpux10* | hpux11*)
     soname_spec='$libname$release$shared_ext$major'
     if test 32 = "$HPUX_IA64_MODE"; then
       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
     else
       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
     fi
-    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   hppa*64*)
     shrext_cmds='.sl'
-- 
2.2.0