libtool-patches
[Top][All Lists]
Advanced

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

Re: Libtool LynxOS support


From: Olli Savia
Subject: Re: Libtool LynxOS support
Date: Thu, 22 Feb 2007 20:15:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.13) Gecko/20060501 Fedora/1.7.13-1.1.fc5

Hi again,

Ralf Wildenhues wrote:
...

Thanks for your work on this.  Is LynxOS before version 4 still used?
If yes, then the patch should disambiguate that and properly disable
shared library support for those older releases: that way, at least
static libraries will be built correctly there.


I guess somebody still uses LynxOS 3.x. What would be the most
convient way of dealing this?


Please refer to the README file for how to run both the old and the new
testsuite and how to report test failures verbosely.  Please send large
output packed (bzip2, gzip), and please write to the libtool-patches
list.  Thanks.



Attached is test log and the latest version of my patch.

Thanks,
Olli
Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /sources/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.96
diff -c -r1.96 libtool.m4
*** libltdl/m4/libtool.m4       17 Feb 2007 15:15:23 -0000      1.96
--- libltdl/m4/libtool.m4       22 Feb 2007 18:09:37 -0000
***************
*** 1596,1601 ****
--- 1596,1607 ----
      lt_cv_dlopen_self=yes
      ;;
  
+   lynxos*)
+     lt_cv_dlopen="dlopen"
+     lt_cv_dlopen_libs=-ldl
+     lt_cv_dlopen_self=yes
+     ;;
+ 
    mingw* | pw32*)
      lt_cv_dlopen="LoadLibrary"
      lt_cv_dlopen_libs=
***************
*** 2344,2349 ****
--- 2350,2365 ----
    dynamic_linker='GNU/Linux ld.so'
    ;;
  
+ lynxos*)
+   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
+   hardcode_into_libs=yes
+   ;;
+ 
  netbsd*)
    version_type=sunos
    need_lib_prefix=no
***************
*** 2921,2926 ****
--- 2937,2946 ----
    lt_cv_deplibs_check_method=pass_all
    ;;
  
+ lynxos* )
+   lt_cv_deplibs_check_method=pass_all
+   ;;
+ 
  netbsd*)
    if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
      lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
***************
*** 3426,3431 ****
--- 3446,3455 ----
        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
        # Instead, we relocate shared libraries at runtime.
        ;;
+     lynxos*)
+       # LynxOS uses GNU C++, but need to define -mshared option too
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -mshared'
+       ;;
      sysv4*MP*)
        if test -d /usr/nec; then
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
***************
*** 3575,3580 ****
--- 3599,3605 ----
        esac
        ;;
        lynxos*)
+       # LynxOS uses GNU C++
        ;;
        m88k*)
        ;;
***************
*** 3734,3739 ****
--- 3759,3769 ----
        # Instead, we relocate shared libraries at runtime.
        ;;
  
+     lynxos*)
+       # LynxOS uses GNU C++, but need to define -mshared option too.
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -mshared'
+       ;;
+ 
      msdosdjgpp*)
        # Just because we use GCC doesn't mean we suddenly get shared libraries
        # on systems that don't support them.
***************
*** 5869,5876 ****
        ;;
  
        lynxos*)
!         # FIXME: insert proper C++ library support
!       _LT_TAGVAR(ld_shlibs, $1)=no
        ;;
  
        m88k*)
--- 5899,5906 ----
        ;;
  
        lynxos*)
!         # LynxOS uses GNU C++ and GNU ld with standard ELF conventions
!         _LT_TAGVAR(ld_shlibs, $1)=yes
        ;;
  
        m88k*)

Attachment: tests.log.bz2
Description: BZip2 compressed data


reply via email to

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