This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Libtool support for TPF


Hello,

this patch adds support for the TPF OS to the libtool files used 
in the GCC toplevel directory, allowing C++ shared libraries to
be built properly.

The actual settings on TPF are for the most part similar to Linux.

Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux;
tested on TPF by the TPF team.

OK for mainline?

Bye,
Ulrich


Patch provided by P.J. Darcy (darcypj@us.ibm.com).

ChangeLog:

	* ltcf-c.sh (tpf*): Add ld_shlibs=yes.
	* ltcf-cxx.sh (tpf*): Likewise.
	* ltconfig (tpf*): Add TPF OS configuration support.

Index: ltcf-c.sh
===================================================================
RCS file: /cvs/gcc/gcc/ltcf-c.sh,v
retrieving revision 1.20
diff -c -p -r1.20 ltcf-c.sh
*** ltcf-c.sh	27 Apr 2004 06:14:30 -0000	1.20
--- ltcf-c.sh	21 Sep 2004 17:37:43 -0000
*************** EOF
*** 213,218 ****
--- 213,222 ----
      hardcode_shlibpath_var=no
      ;;
  
+   tpf*)
+     ld_shlibs=yes
+     ;;
+ 
    *)
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvs/gcc/gcc/ltcf-cxx.sh,v
retrieving revision 1.29
diff -c -p -r1.29 ltcf-cxx.sh
*** ltcf-cxx.sh	3 Aug 2004 00:52:06 -0000	1.29
--- ltcf-cxx.sh	21 Sep 2004 17:37:43 -0000
*************** case $host_os in
*** 697,702 ****
--- 697,705 ----
          ;;
      esac
      ;;
+   tpf*)
+     ld_shlibs=yes
+     ;;
    unixware*)
      # FIXME: insert proper C++ library support
      ld_shlibs=no
Index: ltconfig
===================================================================
RCS file: /cvs/gcc/gcc/ltconfig,v
retrieving revision 1.31
diff -c -p -r1.31 ltconfig
*** ltconfig	27 Apr 2004 06:14:30 -0000	1.31
--- ltconfig	21 Sep 2004 17:37:44 -0000
*************** sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
*** 1374,1379 ****
--- 1374,1391 ----
    esac
    ;;
  
+ tpf*)
+   version_type=linux
+   need_lib_prefix=no
+   need_version=no
+   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=no
+   hardcode_into_libs=yes
+   dynamic_linker='GNU/Linux ld.so'
+   ;;
+ 
  uts4*)
    version_type=linux
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]