libtool-patches
[Top][All Lists]
Advanced

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

Compaq UNIX 4.0 multi-language-branch


From: Robert Boehne
Subject: Compaq UNIX 4.0 multi-language-branch
Date: Wed, 18 Oct 2000 15:05:57 -0500

The following patch will cause the test suite for
the multi-language branch to pass all tests (this fixes
two failing tests) with Compaq C/C++ and GCC/G++ 2.95.2
using the 4.0F version of the OS.  It patches the files
ltcf-cxx.sh and ltcf-c.sh, and should be short enough
that it can be applied even if RMS isn't done with the
paperwork for me.  ;)
  The main change was to NOT use -Wl,-rpath but to use
-rpath directly as an argument to cxx/c89.  I do not know
how this differs on other versions of the compiler (mine is
up to date V.6.2-037) so if anyone could test this out...
  The change is needed because -Wl,-rpath is not interpreted
correctly, resulting in an error "Cannot find ${libpath}"
rather than a link.


Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  address@hidden
? ltcf-cxx.ibm+compaq
? ltcf-cxx-patch
? ltcf-cxx-merge.compaq
? mkinstalldirs
? missing
? patches
? so_locations
? ltcf-c-patch
? tagdemo/so_locations
Index: ltcf-c.sh
===================================================================
RCS file: /home/cvs/libtool/Attic/ltcf-c.sh,v
retrieving revision 1.1.2.14
diff -c -3 -p -r1.1.2.14 ltcf-c.sh
*** ltcf-c.sh   2000/09/04 08:05:22     1.1.2.14
--- ltcf-c.sh   2000/10/18 19:55:08
*************** else
*** 412,418 ****
        allow_undefined_flag=' -expect_unresolved \*'
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs 
$linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version 
$verstring` -update_registry ${objdir}/so_locations -o $lib'
      fi
!     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
      hardcode_libdir_separator=:
      ;;
  
--- 412,418 ----
        allow_undefined_flag=' -expect_unresolved \*'
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs 
$linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version 
$verstring` -update_registry ${objdir}/so_locations -o $lib'
      fi
!     hardcode_libdir_flag_spec='-rpath $libdir'
      hardcode_libdir_separator=:
      ;;
  
Index: ltcf-cxx.sh
===================================================================
RCS file: /home/cvs/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.23
diff -c -3 -p -r1.1.2.23 ltcf-cxx.sh
*** ltcf-cxx.sh 2000/09/15 16:49:03     1.1.2.23
--- ltcf-cxx.sh 2000/10/18 19:55:08
*************** case "$host_os" in
*** 395,404 ****
          ld_shlibs=no
          ;;
        cxx)
!         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
!         archive_cmds='$CC -shared${allow_undefined_flag} $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname 
$soname `test -n "$verstring" && echo ${wl}-set_version $verstring` 
-update_registry ${objdir}/so_locations -o $lib'
          
!         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
          hardcode_libdir_separator=:
  
          # Commands to make compiler produce verbose output that lists
--- 395,404 ----
          ld_shlibs=no
          ;;
        cxx)
!         allow_undefined_flag=' -expect_unresolved \*'
!         archive_cmds='$CC -shared${allow_undefined_flag} $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test 
-n "$verstring" && echo -set_version $verstring` -update_registry 
${objdir}/so_locations -o $lib'
          
!         hardcode_libdir_flag_spec='-rpath $libdir'
          hardcode_libdir_separator=:
  
          # Commands to make compiler produce verbose output that lists

reply via email to

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