Dear all.

I wish to port libtool to a new platform. The libtool version is ...
% ./ltconfig --version
ltconfig (GNU libtool) 1.3.5 (1.385.2.206 2000/05/27 11:12:27)

The plathome is 'mips-sony-newsos6'( Sony NEWS-OS Release6. MIPS cpu,
ELF, svr4 base).

Patch is below. 
========================================================================
diff -cr libtool-1.3.5/README libtool-1.3.5.newsos6/README
*** libtool-1.3.5/README        Thu Jun 24 00:13:15 1999
--- libtool-1.3.5.newsos6/README        Tue Jul 25 14:43:43 2000
***************
*** 30,35 ****
--- 30,36 ----
    SunOS 4.x, a.k.a. Solaris 1.x  (*-*-sunos4*)
    UnixWare 2.x (*-*-sysv4.2uw2*)
    UTS 4.x (*-*-uts4*)
+   NEWS-OS Release 6 (mips-sony-newsos6)
    All ELF targets that use both the GNU C compiler (gcc) and GNU ld
  
  NOTE: Some HP-UX sed programs are horribly broken, and cannot handle
diff -cr libtool-1.3.5/ltconfig.in libtool-1.3.5.newsos6/ltconfig.in
*** libtool-1.3.5/ltconfig.in   Sat May 27 10:58:57 2000
--- libtool-1.3.5.newsos6/ltconfig.in   Tue Jul 25 14:56:26 2000
***************
*** 742,747 ****
--- 742,752 ----
      wl='-Qoption ld '
      ;;
  
+   newsos6)
+     pic_flag='-KPIC'
+     link_static_flag='-Bstatic'
+     ;;
+ 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
      pic_flag='-KPIC'
      link_static_flag='-Bstatic'
***************
*** 1477,1482 ****
--- 1482,1495 ----
      hardcode_shlibpath_var=no
      ;;
  
+   newsos6)
+     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
+     hardcode_direct=yes
+     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+     hardcode_libdir_separator=:
+     hardcode_shlibpath_var=no
+     ;;  
+ 
    sysv4)
      if test "x$host_vendor" = xsequent; then
        # Use $CC to link under sequent, because it throws in some extra .o 
***************
*** 2093,2098 ****
--- 2106,2122 ----
      need_lib_prefix=no
    fi
    need_version=yes
+   ;;
+ 
+ newsos6)
+   version_type=linux
+   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$
+ major $libname.so'
+   shlibpath_var=LD_LIBRARY_PATH
+   shlibpath_overrides_runpath=yes
+   file_magic_cmd=/usr/bin/file
+   deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic 
+lib)'
+   file_magic_test_file=/usr/lib/libnls.so
    ;;
  
  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
========================================================================

Best Regard.
--
[EMAIL PROTECTED]

Reply via email to