libtool
[Top][All Lists]
Advanced

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

Re: problem with libtool generated version script and underscores


From: Mike Frysinger
Subject: Re: problem with libtool generated version script and underscores
Date: Wed, 6 Feb 2008 12:51:08 -0500
User-agent: KMail/1.9.7

On Wednesday 06 February 2008, Aleksey Demakov wrote:
> On Feb 6, 2008 9:18 PM, Peter O'Gorman <address@hidden> 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

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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