[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: export_dynamic_flag_spec
From: |
Sam Steingold |
Subject: |
Re: export_dynamic_flag_spec |
Date: |
Wed, 9 Jun 2010 15:35:37 -0400 |
Hi Gary,
thanks for your kind reply.
On 6/9/10, Gary V. Vaughan <address@hidden> wrote:
> On 10 Jun 2010, at 01:51, Sam Steingold wrote:
> > EXPORT_DYNAMIC_FLAG_SPEC='@EXPORT_DYNAMIC_FLAG_SPEC@'
> >
> > alas, instead of
> >
> > EXPORT_DYNAMIC_FLAG_SPEC='-Wl,--export-dynamic'
> >
> > foo.sh contains this:
> >
> > EXPORT_DYNAMIC_FLAG_SPEC='${wl}--export-dynamic'
> >
> > which is obviously wrong.
>
>
> No, it's quite deliberate.
what I meant "wrong for my purposes".
> > So, how do I get the full correct value of export_dynamic_flag_spec?
>
> Choose or extract an appropriate value for $wl from libtool, something along
> the lines of:
>
> eval `libtool --tag=CC --config|grep '^wl='`
>
> Generally when a libtool variable name ends with '_spec', that means it
> relies on being evaluated with an appropriate environment before use.
It appears that this:
wl=$lt_prog_compiler_wl eval
EXPORT_DYNAMIC_FLAG_SPEC=\"$export_dynamic_flag_spec\"
AC_SUBST(EXPORT_DYNAMIC_FLAG_SPEC)dnl
does the trick for me at this time.
is it OK to use? (as in "will not randomly break in the future")
thanks again!
--
Sam Steingold <http://sds.podval.org>