On Wednesday 06 February 2008, Aleksey Demakov wrote: > On Feb 6, 2008 9:18 PM, Peter O'Gorman <[EMAIL PROTECTED]> wrote: > > What is the host triplet for the system that you are building for? > > Umm the canonical host name must be something like > bfin-unknown-linux. > > > You need to set archive_expsym_cmds for that system to be similar to > > interix[[3-9]]* which has: > > > > _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," > > $export_symbols > > > > >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs > > > > $compiler_flags ${wl}-h,$soname > > ${wl}--retain-symbols-file,$output_objdir/$soname.expsym > > ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` > > -o $lib' > > > > As you can see, it takes the symbol list, prepends and underscore, and > > then uses that. > > Okay, thanks for the hint. > > > It is not required to change global_symbol_pipe etc. > > The strange thing is that libtool checks if global_symbol_pipe > needs to handle underscore with a general check, not with > a host name check. > > But this knowledge is not used for archive_expsym_cmds. > For blackfin the only difference is undescore, otherwise it > looks like regular linux. So special casing bfin-linux looks > excessive. But if this okay with libtool maintainers, I may > try to create a patch that does exactly that.
Blackfin is not the only target that utilizes underscore prefixes. a more generic check (as noted in the previous thread you cited) would be to consider the define from gcc __USER_LABEL_PREFIX__. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool