[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gary V. Vaughan
Thu, 10 Jun 2010 02:26:52 +0700
On 10 Jun 2010, at 01:51, Sam Steingold wrote:
> how can I get the value of export_dynamic_flag_spec substituted by configure?
> I have this in my configure.in:
> AC_LIBTOOL_DLOPEN_SELF dnl do I even need this?!
> and this in my foo.sh.in file:
> alas, instead of
> foo.sh contains this:
> which is obviously wrong.
No, it's quite deliberate. That way when we link with the compiler driver
we can say:
eval $CC .... $export_dynamic_flag_spec ...
and when we want to link by calling the linker directly we can say:
eval $LD ... $export_dynamic_flag_spec ...
> 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.
Gary V. Vaughan (address@hidden)