On Thu, Feb 7, 2008 at 2:23 AM, Ralf Wildenhues <[EMAIL PROTECTED]> wrote:
> > Please take a look at AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE in libtool.m4.
>  [...]
>
> > That is while finding the correct global_symbol_pipe command it uses
>  > temporary variable $ac_symprfx. I think this variable could be just re-used
>  > to tell if the system requires underscore. There is no need for a separate
>  > test that relies on a gcc feature. The existing test goes through the
>  > entire chain compiler/linker/NM and therefore should be more reliable.
>
>  I agree.
>

Um, may it be that simple? It works for me.

Regards,
Aleksey
diff -u libtool-1.5.26.orig/libtool.m4 libtool-1.5.26/libtool.m4
--- libtool-1.5.26.orig/libtool.m4	2008-02-01 22:26:47.000000000 +0600
+++ libtool-1.5.26/libtool.m4	2008-02-14 03:19:17.000000000 +0600
@@ -5782,7 +5782,7 @@
 
 	if test $supports_anon_versioning = yes; then
 	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
-  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+  cat $export_symbols | sed -e "s/\(.*\)/'"$ac_symprfx"'\1;/" >> $output_objdir/$libname.ver~
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 	fi

_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to