libtool
[Top][All Lists]
Advanced

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

[sr #108201] libtool problems with -export-symbols-regex on solaris with


From: Richard PALO
Subject: [sr #108201] libtool problems with -export-symbols-regex on solaris with gcc-4.7.x
Date: Wed, 12 Dec 2012 14:17:12 +0000
User-agent: Mozilla/5.0 (X11; SunOS i86pc; rv:17.0) Gecko/17.0 Firefox/17.0

Follow-up Comment #6, sr #108201 (project libtool):

And here is the diff for the proposed patch.
After cleanup and rebuilding (seemed like a zillion autoreconfs)
running the export tests as indicated (both for standard and CC=g++) are
successful.

address@hidden:~/src/libtool$ git diff --staged
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 44e0ecf..397756f 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -6742,7 +6742,7 @@ if test "$_lt_caught_CXX_error" != yes; then
              if $CC --version | $GREP -v '^2.7' > /dev/null; then
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib
$LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags
${w
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" >
$lib.exp~cat $export_symbols | $SED -e "s/(.*)/1;/" >> $lib.exp~echo "local:
*; };
-                 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM
$lib.exp
+                 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp ${wl}-h
$wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects
$compiler
 
                # Commands to make compiler produce verbose output that lists
                # what "hidden" libraries, object files and flags are used
when
@@ -6753,7 +6753,7 @@ if test "$_lt_caught_CXX_error" != yes; then
                # platform.
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h
$wl$soname
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" >
$lib.exp~cat $export_symbols | $SED -e "s/(.*)/1;/" >> $lib.exp~echo "local:
*; };
-                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+                 $CC -G -nostdlib ${wl}-M $wl$lib.exp ${wl}-h $wl$soname -o
$lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM
$lib
 
                # Commands to make compiler produce verbose output that lists
                # what "hidden" libraries, object files and flags are used
when


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?108201>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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