diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2017-09-26 15:12:44 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-10-06 14:41:37 +0200 |
commit | ccde3a2ed482d191426cae68f5c02402d4c4698d (patch) | |
tree | 263c8093b7cc5738640558e70e36a3d51dbf331a | |
parent | 20aa8539966069195ace5f909e6f5cf8b4e56e2c (diff) | |
download | elfutils-ccde3a2ed482d191426cae68f5c02402d4c4698d.tar.gz |
Add support for building C++
* configure.ac: Add support for C++ build.
* Makefile.am: Add dwarflint into SUBDIRS.
Signed-off-by: Djordje Todorovic <djordje.todorovic@rt-rk.com>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 2ff444e7..60f9e0b0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,7 +28,7 @@ pkginclude_HEADERS = version.h # Add doc back when we have some real content. SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \ - backends src po tests + backends src po tests dwarflint EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ COPYING COPYING-GPLV2 COPYING-LGPLV3 diff --git a/configure.ac b/configure.ac index 4ab8816a..04e060b8 100644 --- a/configure.ac +++ b/configure.ac @@ -89,6 +89,7 @@ AC_PROG_CC AC_PROG_RANLIB AC_PROG_YACC AM_PROG_LEX +AC_PROG_CXX # Only available since automake 1.12 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) AC_CHECK_TOOL([READELF], [readelf]) @@ -276,6 +277,7 @@ AC_ARG_ENABLE([gprof], AS_HELP_STRING([--enable-gprof],[build binaries with gprof support]), [use_gprof=$enableval], [use_gprof=no]) if test "$use_gprof" = yes; then CFLAGS="$CFLAGS -pg" + CXXFLAGS="$CXXFLAGS -pg" LDFLAGS="$LDFLAGS -pg" fi AM_CONDITIONAL(GPROF, test "$use_gprof" = yes) @@ -516,7 +518,7 @@ dnl CPU-specific backend libraries. AC_CONFIG_FILES([backends/Makefile]) dnl Tools. -AC_CONFIG_FILES([src/Makefile po/Makefile.in]) +AC_CONFIG_FILES([src/Makefile po/Makefile.in dwarflint/Makefile]) dnl Test suite. AM_CONDITIONAL(STANDALONE, false)dnl Used in tests/Makefile.am, which see. |