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: Aleksey Demakov
Subject: Re: problem with libtool generated version script and underscores
Date: Wed, 6 Feb 2008 23:31:22 +0600

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.

Regards,
Aleksey




reply via email to

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