This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GOLD] debug_msg test


On 3/8/13, Cary Coutant <ccoutant@google.com> wrote:
>> First, I think it would be simpler to set DEFAULT_TARGET in
>> configure.ac and AC_SUBST it in configure.ac.  After the
>> AM_CONDITIONAL lines setting DEFAULT_TARGET_ARM and friends:
>>     DEFAULT_TARGET=${targ_obj}
>>     AC_SUBST(DEFAULT_TARGET)
>>
>> Then after you run autoreconf DEFAULT_TARGET will be set in
>> testsuite/Makefile.am.
>>
>> To get it into the environment, add this to testsuite/Makefile.am:
>>
>> .EXPORT_ALL_VARIABLES:
>
> Ah, good point. This won't have any effect with other versions of
> make, but it at least won't give a syntax error, right?

Right.  And other versions of make either export all variables by
default, or honor this target.

> Depending on
> how we write the 'if' in the script, we can either execute the check
> for all targets, or skip it for all targets when using a non-Gnu make.
> Which would be preferable?

Don't worry about a non-GNU make, it will have the variable exported anyhow.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]