summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-06-18 20:10:47 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-06-18 20:10:47 +0200
commite70410eabf0115819624acd5ca1bd6fb24150887 (patch)
treec099fb68c14e52167faefb59deb787af00a434c9
parent8e4fd1c1e87f13a96ea2c47860c7e92315455bb2 (diff)
Disable hugin when not compling with debug enabled.
-rw-r--r--configure.ac3
m---------hugin0
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3716732..41440bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,7 @@ AM_SILENT_RULES([yes])
dnl ======================
dnl Compile with debug options
dnl ======================
+HUGIN_PARM="-DDISABLE_HUGIN"
AC_ARG_WITH(debug,
[ --with-debug build with debug support (default=no)],
[],
@@ -17,7 +18,9 @@ if test x$with_debug == xyes; then
AC_MSG_WARN([*** Building with debug support!])
AC_DEFINE_UNQUOTED(WITH_DEBUG, , [The project is configured to use debug output])
CXXFLAGS="$CXXFLAGS -fstack-protector -Wall -Werror -g -O0"
+ HUGIN_PARM=""
fi
+CXXFLAGS="$CXXFLAGS $HUGIN_PARM"
dnl ======================
dnl Init pkg-config
diff --git a/hugin b/hugin
-Subproject 08827265399f3f69f7f25512e991f67da5bbac6
+Subproject a42fbcc9dd03a6a6c24b494b683b370bd517333