libtool-patches
[Top][All Lists]
Advanced

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

Re: Patch to support IA64 HP-UX


From: Steve Ellcey
Subject: Re: Patch to support IA64 HP-UX
Date: Thu, 12 Apr 2001 12:41:18 -0700 (PDT)

> Thanks for the patch!  I work mostly with the multi-language-branch
> of Libtool because the main branch doesn't have the features I need.
> Libtool 1.5 will be based on the multi-language-branch, and it is
> quite difficult for maintainers to transform a patch for head to the
> MLB without a platform to test on.  I'd like to see support for
> your platform in the MLB, and I'd be glad to help you work your
> patch into the MLB framework and get rid of any test failures.
> 
> Robert

Robert,

Here is a patch for IA64 HP-UX on the MLB branch.  It has changes to
three files, libtool.m4, ltcf-c.sh and ltconfig.in.  It has three
failures when I run the test suite, all of them the depdemo-make test.
I am not sure how tagdemo* passed because I didn't make any changes to
ltcf-cxx.sh yet.

Anyway if you could check this into the MLB branch that would be great.

*** libtool.m4.orig     Wed Apr 11 14:30:50 2001
--- libtool.m4  Wed Apr 11 14:35:15 2001
*************** case $host in
*** 159,164 ****
--- 159,180 ----
    rm -rf conftest*
    ;;
  
+ ia64-*-hpux*)
+   # Find out which ABI we are using.
+   echo 'int i;' > conftest.$ac_ext
+   if AC_TRY_EVAL(ac_compile); then
+     case "`/usr/bin/file conftest.o`" in
+     *ELF-32*)
+       HPUX_IA64_MODE="32"
+       ;;
+     *ELF-64*)
+       HPUX_IA64_MODE="64"
+       ;;
+     esac
+   fi
+   rm -rf conftest*
+   ;;
+ 
  *-*-sco3.2v5*)
    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    SAVE_CFLAGS="$CFLAGS"
*************** gnu*)
*** 568,576 ****
    ;;
  
  hpux10.20*|hpux11*)
!   lt_cv_deplibs_check_method=['file_magic 
(s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
!   lt_cv_file_magic_cmd=/usr/bin/file
!   lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  
  irix5* | irix6*)
--- 584,601 ----
    ;;
  
  hpux10.20*|hpux11*)
!   case $host_cpu in
!   hppa*)
!     [lt_cv_deplibs_check_method='file_magic 
(s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
!     lt_cv_file_magic_cmd=/usr/bin/file
!     lt_cv_file_magic_test_file=/usr/lib/libc.sl
!     ;;
!   ia64*)
!     [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) 
shared object file - IA64']
!     lt_cv_file_magic_cmd=/usr/bin/file
!     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
!     ;;
!   esac
    ;;
  
  irix5* | irix6*)
*** ltcf-c.sh.orig      Thu Apr 12 10:14:37 2001
--- ltcf-c.sh   Thu Apr 12 10:33:53 2001
*************** else
*** 411,425 ****
      ;;
  
    hpux9* | hpux10* | hpux11*)
      case $host_os in
      hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b 
$install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test 
$output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
      *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs 
$deplibs $linker_flags' ;;
      esac
-     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
-     hardcode_libdir_separator=:
-     hardcode_direct=yes
-     hardcode_minus_L=yes # Not in the search PATH, but as the default
-                        # location of the library.
      export_dynamic_flag_spec='${wl}-E'
      ;;
  
--- 411,433 ----
      ;;
  
    hpux9* | hpux10* | hpux11*)
+     hardcode_minus_L=yes
+     case "$host_cpu" in
+     ia64*)
+       hardcode_direct=no
+       hardcode_shlibpath_var=no
+       archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_libdir_flag_spec='-L$libdir' ;;
+     *)
+       hardcode_direct=yes
+       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+       hardcode_libdir_separator=: ;;
+     esac
+ 
      case $host_os in
      hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b 
$install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test 
$output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
      *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs 
$deplibs $linker_flags' ;;
      esac
      export_dynamic_flag_spec='${wl}-E'
      ;;
  
*** ltconfig.in.orig    Thu Apr 12 10:08:39 2001
--- ltconfig.in Thu Apr 12 10:08:02 2001
*************** gnu*)
*** 1150,1166 ****
  hpux9* | hpux10* | hpux11*)
    # Give a soname corresponding to the major version so that dld.sl refuses to
    # link against other versions.
-   dynamic_linker="$host_os dld.sl"
    version_type=sunos
    need_lib_prefix=no
    need_version=no
!   shlibpath_var=SHLIB_PATH
!   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
!   library_names_spec='${libname}${release}.sl$versuffix 
${libname}${release}.sl$major $libname.sl'
!   soname_spec='${libname}${release}.sl$major'
    # HP-UX runs *really* slowly unless shared libraries are mode 555.
    postinstall_cmds='chmod 555 $lib'
    ;;
  
  irix5* | irix6*)
    version_type=irix
--- 1150,1184 ----
  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*) dynamic_linker="$host_os dld.so"
!          shlibpath_var=LD_LIBRARY_PATH
!          library_names_spec='${libname}${release}.so$versuffix 
${libname}${release}.so$major $libname.so'
!          soname_spec='${libname}${release}.so$major'
!          shlibpath_var=LD_LIBRARY_PATH
!          shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
!          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
!          ;;
!   *)     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}.sl$versuffix 
${libname}${release}.sl$major $libname.sl'
!          soname_spec='${libname}${release}.sl$major'
!          ;;
!   esac
    # HP-UX runs *really* slowly unless shared libraries are mode 555.
    postinstall_cmds='chmod 555 $lib'
    ;;
+ 
+ 
  
  irix5* | irix6*)
    version_type=irix



reply via email to

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