Use CXXCOMPILE in gold/testsuite/Makefile for c++ testcases
authorAlan Modra <amodra@gmail.com>
Tue, 16 Jun 2020 08:39:33 +0000 (18:09 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 16 Jun 2020 11:33:25 +0000 (21:03 +0930)
commit90cd2aad0314291328f21cb68ee76efc6c4f8a30
treec859edec9bc3b001cd6e278894f0a2dfe47b2593
parent2106ed9baf1098a5d76469ecde30813065c46c68
Use CXXCOMPILE in gold/testsuite/Makefile for c++ testcases

I was playing with passing -std=c99 to an older version of gcc by
using CC="gcc-4 -std=c99", and ran into
cc1plus: error: command line option ‘-std=c99’ is valid for C/ObjC but
not for C++ [-Werror]
This obvious fix uses the correct compiler for a number of gold
testcases.

* testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
(plugin_test_wrap_symbols_1.o): Likewise.
(plugin_test_wrap_symbols_2.o): Likewise.
* testsuite/Makefile.in: Regenerate.
gold/ChangeLog
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in