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.
richard@devzone:~/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/ _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool