From: Djordje Todorovic Date: Tue, 26 Sep 2017 13:12:44 +0000 (+0200) Subject: Add support for building C++ X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccde3a2ed482d191426cae68f5c02402d4c4698d;p=thirdparty%2Felfutils.git Add support for building C++ * configure.ac: Add support for C++ build. * Makefile.am: Add dwarflint into SUBDIRS. Signed-off-by: Djordje Todorovic --- diff --git a/Makefile.am b/Makefile.am index 2ff444e7b..60f9e0b08 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 4ab8816ad..04e060b8e 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.