Skip to content

Commit

Permalink
Do not build tests with debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Jul 23, 2018
1 parent 95c6f45 commit 66e0d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])
])

Expand Down

0 comments on commit 66e0d61

Please sign in to comment.