libtool
[Top][All Lists]
Advanced

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

Re: Incorrect library suffix on newer HP-UX (.sl vs .so)


From: Guido Draheim
Subject: Re: Incorrect library suffix on newer HP-UX (.sl vs .so)
Date: Tue, 07 Oct 2003 15:25:15 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313



Petter Reinholdtsen wrote:
[Guido Draheim]

I am not a maintainer, and I do not want to give any premature
answer on your question, but the wording of your question has the
feeling of a mail sent to a commercial hotline.


Interesting.  You have more experience with commercial hotlines then
me.


Since I have no hpux ia64 machine around, it is quite certain that I
am not going to create that patch, and that holds probably for a lot
of people. So, what about you? :-)=)


If the support is missing, and I am able to extract the latest version
from CVS, I will probably try to supply patches to add support for the
proper library suffix.  But I want to make sure I am not wasting my
effort if the problem is already fixed.

Well, you did already check the changelog, and fetching the latest
cvs version is not hard either, so you can have a check firsthand.


My GNU source mirror only had 1.4.2 available, and it is not fixed
there.


Sorry, that was not obvious, I've been thinking you were trying with
a later version than that and simply asking for future plans of a
feature not visible so far, possibly also browsing into the other cvs
files at savannah without finding anything conclusive.

Anyway, I've been just looking at the CVS repo at savannah and in the
relevant libtool.m4 file, there is the following section that might
be helpful to you (it looks good but YMMV):

hpux9* | hpux10* | hpux11*)
  # Give a soname corresponding to the major version so that dld.sl refuses to
  # link against other versions.
  version_type=sunos
  need_lib_prefix=no
  need_version=no
  case "$host_cpu" in
  ia64*)
    shrext='.so'
    hardcode_into_libs=yes
    dynamic_linker="$host_os dld.so"
    shlibpath_var=LD_LIBRARY_PATH
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    if test "X$HPUX_IA64_MODE" = X32; then
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 
/usr/local/lib"
    else
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    fi
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    ;;
   hppa*64*)
     shrext='.sl'
     hardcode_into_libs=yes
     dynamic_linker="$host_os dld.sl"
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     soname_spec='${libname}${release}${shared_ext}$major'
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     ;;
   *)
    shrext='.sl'
    dynamic_linker="$host_os dld.sl"
    shlibpath_var=SHLIB_PATH
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    soname_spec='${libname}${release}${shared_ext}$major'
    ;;
  esac
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  postinstall_cmds='chmod 555 $lib'
  ;;






reply via email to

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