diff --git a/CHANGELOG.md b/CHANGELOG.md index 44c1670..2803ace 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ -### 0.0.3 - 2020-02-24 +### 0.0.5 - 2020-03-02 +## Added +- Pass FLAGS to configure script + +### 0.0.4 - 2020-02-24 ## Added - Configuration file now has an additional option to use either systemd-system-unitdir or systemd-user-unitdir diff --git a/configure.ac b/configure.ac index b9aa61f..fffecb3 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ([2.69]) -AC_INIT([usbguard-notifier], [0.0.4], [alakatos@redhat.com]) +AC_INIT([usbguard-notifier], [0.0.5], [alakatos@redhat.com]) AC_CONFIG_SRCDIR([src/]) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_MACRO_DIR([m4]) @@ -9,6 +9,8 @@ m4_pattern_allow([AC_MSG_FAILURE]) # if it's possible enable silent compilation m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +EXTERNAL_CXXFLAGS="$CXXFLAGS" + AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax]) AC_PROG_MAKE_SET @@ -128,7 +130,7 @@ fi AC_SUBST([catch_CFLAGS]) AC_SUBST([catch_LIBS]) -CXXFLAGS_DEBUG="-g -O0" +CXXFLAGS_DEBUG="-g -O2" AC_ARG_ENABLE( [debug-build], [AC_HELP_STRING([--enable-debug-build], [enable debugging flags (default=no)])], @@ -140,7 +142,7 @@ AC_ARG_ENABLE( [debug=no] ) -CXXFLAGS= +CXXFLAGS=" $EXTERNAL_CXXFLAGS" CXXFLAGS+=" -std=c++11" CXXFLAGS+=" -pedantic" CXXFLAGS+=" -Wno-unknown-pragmas"