[GOLD] debug_msg test

Ian Lance Taylor iant@google.com
Fri Mar 8 23:04:00 GMT 2013

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}
>> 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:
> 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.


More information about the Binutils mailing list