Ensure a consistent C++ standard use
authorMatthias Maennich <maennich@google.com>
Mon, 22 Jul 2019 08:39:40 +0000 (09:39 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 22 Jul 2019 09:18:13 +0000 (11:18 +0200)
commitd7ae619ff3360480348f7f1ab58fdb3be85aa079
tree593bd7512fe35f30b4be54c54eb3db04b07fe8bc
parentf2437aabad085e9f9c99d28e94ac0f046e224763
Ensure a consistent C++ standard use

On older compilers (such as g++ 4.8), the default C++ standard is set to
gnu++98. When compiling libabigail with --enable-cxx11=yes, src/ and
tests/ where compiled with the correct flag, while tools/ was compiled
without specifying a standard. With a compiler falling back to gnu++98
that leads to unresolved references when linking the tools against the
libabigail library. Fix that by consistently using the std= flag across
the code base.

* configure.ac: add -std=c++11 flag to CXXFLAGS when compiling
for C++11
* src/Makefile.am: drop now obsolete setting of the -std flag
* tests/Makefile.am: likewise

Reported-by: Chun-Hung Wu <Chun-hung.Wu@mediatek.com>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
configure.ac
src/Makefile.am
tests/Makefile.am