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/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


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