[GOLD] debug_msg test

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


On 3/7/13, Cary Coutant <ccoutant@google.com> wrote:
>
> Something like the attached should work.
>
>         * testsuite/Makefile.am: Export DEFAULT_TARGET to test scripts.
>         * testsuite/Makefile.in: Regenerate.
>         * testsuite/debug_msg.sh: Delete duplicate tests.  Don't check
> undef_int
>         error message match for powerpc where the source file and line
> number
>         aren't available.

I like the idea, but I think you are using a GNU make feature,
although the GNU binutils do not (yet) require GNU make (I think).

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:

Ian



More information about the Binutils mailing list