From 66e0d6198dd995ef5b70cd2713573b88453c7da1 Mon Sep 17 00:00:00 2001 From: Stefan Wold Date: Mon, 23 Jul 2018 11:25:18 +0200 Subject: [PATCH] Do not build tests with debug --- Makefile.am | 2 +- configure.ac | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 71e1fcb..6d5849e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,7 +5,7 @@ DISTCLEANFILES = lib_LTLIBRARIES = installwatch.la installwatch_la_SOURCES = installwatch.c -installwatch_la_CPPFLAGS = -Wall -D_REENTRANT +installwatch_la_CFLAGS = -Wall -D_REENTRANT $(DEBUG_CFLAGS) installwatch_la_LDFLAGS = -module -shared -avoid-version installwatch_la_LIBADD = -ldl -lc diff --git a/configure.ac b/configure.ac index 18925e6..42d3638 100644 --- a/configure.ac +++ b/configure.ac @@ -110,7 +110,8 @@ AC_ARG_ENABLE([debug], [enable_debug=no]) AS_IF([test "x$enable_debug" != "xno"], - [CFLAGS=$local_cflags" -g" + [DEBUG_CFLAGS="-ggdb" + AC_SUBST(DEBUG_CFLAGS) AC_DEFINE(DEBUG, 1, [Enable debugging]) ])