libtool-patches
[Top][All Lists]
Advanced

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

[MLB] Fix for hardcode.test on Solaris


From: Robert Boehne
Subject: [MLB] Fix for hardcode.test on Solaris
Date: Tue, 06 Feb 2001 14:51:31 -0600

Hello,

I found that under Solaris 6 and 7 with the native compiler
(workshop 5.0) the hardcode.test script failed every time.
>From reading the man pages it seems that hardcode_shlibpath_var
should have been set to yes.  In addition, hardcode_minus_L=yes
and hardcode_direct=yes were added as they were set to 'no'
by default, fooling libtool.  I do not have gcc on any Solaris
machine, so if someone would test this patch out with gcc &
native ld I would feel a little better about it.


ChangeLog entry:

2001-02-05  Robert Boehne  <address@hidden>

        * ltcf-cxx.sh: Set hardcode_shlibpath_var, hardcode_minus_L,
        and hardcode_direct to "yes" under Solaris to fix the failing
        hardcode.test under Solaris with the native compilers.
        * ltcf-c.sh: ditto.


-- 
Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  address@hidden
Index: ltcf-c.sh
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltcf-c.sh,v
retrieving revision 1.1.2.25
diff -u -r1.1.2.25 ltcf-c.sh
--- ltcf-c.sh   2001/01/27 19:20:51     1.1.2.25
+++ ltcf-c.sh   2001/02/06 19:04:45
@@ -459,7 +459,9 @@
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | 
sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib 
$libobjs $deplibs $linker_flags~$rm $lib.exp'
     hardcode_libdir_flag_spec='-R$libdir'
-    hardcode_shlibpath_var=no
+    hardcode_shlibpath_var=yes
+    hardcode_minus_L=yes
+    hardcode_direct=yes
     case "$host_os" in
     solaris2.[0-5] | solaris2.[0-5].*) ;;
     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.30
diff -u -r1.1.2.30 ltcf-cxx.sh
--- ltcf-cxx.sh 2001/02/05 17:50:37     1.1.2.30
+++ ltcf-cxx.sh 2001/02/06 19:04:45
@@ -453,7 +453,9 @@
         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname 
-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm 
$lib.exp'
 
         hardcode_libdir_flag_spec='-R$libdir'
-        hardcode_shlibpath_var=no
+        hardcode_shlibpath_var=yes
+        hardcode_minus_L=yes
+        hardcode_direct=yes
         case "$host_os" in
           solaris2.[0-5] | solaris2.[0-5].*) ;;
           *)

reply via email to

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