libtool-patches
[Top][All Lists]
Advanced

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

[PATCH] Add support for s390x-ibm-tpf


From: Ulrich Weigand
Subject: [PATCH] Add support for s390x-ibm-tpf
Date: Thu, 23 Sep 2004 20:36:41 +0200 (CEST)

Hello,

this patch adds libtool support for the s390x-ibm-tpf target.
TPF is an operating system for IBM zSeries machines; GCC
supports TPF as cross-target.

This patch was provided by Jim Tison <address@hidden>.
The TPF team tested the patch:
>Tested this libtool patch: installed autoconf-2.58 and automake-1.8, ran
>bootstrap, automake, make check ... all 106 of the testcases passed (2
>were skipped); didn't write any new testcases. But many of the generated
>configure scripts did have certain of the new tpf* test constructs in
>them.

OK?

Bye,
Ulrich


ChangeLog:

2004-09-23  Jim Tison  <address@hidden>

        * m4/libtool.m4 (_LT_ENABLE_LOCK()): Make s390x-ibm-tpf hosts 
        adopt elf64_s390 conventions.
        * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER()): Set defaults for
        s390x-ibm-tpf host.
        * m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD()): Skip all dependency
        checks for s390x-ibm-tpf hosts.
        * m4/libtool.m4 (_LT_LINKER_SHLIBS()): Make s390x-ibm-tpf hosts
        adopt GNU/Linux OS attributes.
        * m4/libtool.m4: Correct obvious spelling errors in remarks.

Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.110
diff -c -3 -p -r1.110 libtool.m4
*** m4/libtool.m4       23 Sep 2004 01:16:41 -0000      1.110
--- m4/libtool.m4       23 Sep 2004 04:55:21 -0000
*************** ia64-*-hpux*)
*** 895,901 ****
    rm -rf conftest*
    ;;
  
! x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
    # Find out which ABI we are using.
    echo 'int i;' > conftest.$ac_ext
    if AC_TRY_EVAL(ac_compile); then
--- 895,901 ----
    rm -rf conftest*
    ;;
  
! 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
    # Find out which ABI we are using.
    echo 'int i;' > conftest.$ac_ext
    if AC_TRY_EVAL(ac_compile); then
*************** x86_64-*linux*|ppc*-*linux*|powerpc*-*li
*** 927,932 ****
--- 927,935 ----
          s390*-*linux*)
            LD="${LD-ld} -m elf64_s390"
            ;;
+         s390*-*tpf*)
+           LD="${LD-ld} -m elf64_s390"
+           ;;
          sparc*-*linux*)
            LD="${LD-ld} -m elf64_sparc"
            ;;
*************** sysv4*MP*)
*** 2117,2122 ****
--- 2120,2137 ----
    fi
    ;;
  
+ tpf*)
+   # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 
+   version_type=linux
+   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_overrides_runpath=no
+   hardcode_into_libs=yes
+   ;;
+ 
  uts4*)
    version_type=linux
    library_names_spec='${libname}${release}${shared_ext}$versuffix 
${libname}${release}${shared_ext}$major $libname${shared_ext}'
*************** sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
*** 2557,2562 ****
--- 2572,2581 ----
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
    lt_cv_deplibs_check_method=pass_all
    ;;
+ 
+ tpf*)
+   lt_cv_deplibs_check_method=pass_all
+   ;;
  esac
  ])
  file_magic_cmd=$lt_cv_file_magic_cmd
*************** sysv4)
*** 2721,2727 ****
  esac
  
  # Transform an extracted symbol line into a proper C declaration.
! # Some systems (esp. on ia64) link data and code symols differently,
  # so use this general approach.
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int 
\1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  
--- 2740,2746 ----
  esac
  
  # Transform an extracted symbol line into a proper C declaration.
! # Some systems (esp. on ia64) link data and code symbols differently,
  # so use this general approach.
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int 
\1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  
*************** case `$NM -V 2>&1` in
*** 2742,2748 ****
    symcode='[[ABCDGIRSTW]]' ;;
  esac
  
! # Try without a prefix undercore, then with it.
  for ac_symprfx in "" "_"; do
  
    # Write the raw and C identifiers.
--- 2761,2767 ----
    symcode='[[ABCDGIRSTW]]' ;;
  esac
  
! # Try without a prefix underscore, then with it.
  for ac_symprfx in "" "_"; do
  
    # Write the raw and C identifiers.
*************** _LT_EOF
*** 3586,3592 ****
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
        ;;
  
!   linux*)
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs 
$compiler_flags ${wl}-soname $wl$soname -o $lib'
        case `$LD -v 2>&1` in
--- 3605,3611 ----
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
        ;;
  
!   linux*|tpf*)
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs 
$compiler_flags ${wl}-soname $wl$soname -o $lib'
        case `$LD -v 2>&1` in
-- 
  Dr. Ulrich Weigand
  address@hidden




reply via email to

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