Skip to content

Commit

Permalink
Merge pull request #86 from besser82/feature/configure_disable-debug
Browse files Browse the repository at this point in the history
add configure-option '--disable-debug'
  • Loading branch information
mvidner committed May 12, 2015
2 parents 80d858d + 9c4104b commit a676f9d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
7 changes: 3 additions & 4 deletions build-tools/rpm/macros.yast
Expand Up @@ -35,10 +35,9 @@
%{_prefix}/bin/y2tool y2automake \
autoreconf --force --install \
\
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG" \
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG" \
\
%configure \
# '--disable-debug' adds '-DNDEBUG' to C(XX)FLAGS used by %%configure \
%configure \\\
--disable-debug \
# V=1: verbose build in case we used AM_SILENT_RULES(yes) \
# so that RPM_OPT_FLAGS check works \
make %{?jobs:-j%jobs} V=1
Expand Down
14 changes: 13 additions & 1 deletion build-tools/scripts/y2autoconf
Expand Up @@ -181,7 +181,19 @@ AC_SUBST(fillupdir)
'@YAST2-INIT-PROGRAM@' =>
'dnl Automake 1.11 enables silent compilation,
dnl Disable it by "configure --disable-silent-rules" or "make V=1"
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])',
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl Enable stdlib-debug-macros by default. Disable debugging-code by
dnl "configure --disable-debug" or "export C(XX)FLAGS="-DNDEBUG"".
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--disable-debug],
[disable stdlib-debug-macros by passing -DNDEBUG to the compiler])
)
AS_IF([test "x$enable_debug" = "xno"],[
CFLAGS="-DNDEBUG ${CFLAGS}"
CXXFLAGS="-DNDEBUG ${CXXFLAGS}"
])',

# init: translation
'@YAST2-INIT-PO@' =>
Expand Down
10 changes: 10 additions & 0 deletions package/yast2-devtools.changes
@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon May 11 17:14:01 CEST 2015 - besser82@fedoraproject.org

- add configure-option '--disable-debug'
- use '--disable-debug' instead forcing $RPM_OPT_FLAGS into $ENV
handling $RPM_OPT_FLAGS is done by %configure-macro anyways
- 'gettextdomains' is DATA not SCRIPT
- use 'dist_'-prefix instead of 'EXTRA_DIST'
- 3.1.33

-------------------------------------------------------------------
Sat May 09 13:14:55 CEST 2015 - besser82@fedoraproject.org

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-devtools.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-devtools
Version: 3.1.32
Version: 3.1.33
Release: 0
Url: http://github.com/yast/yast-devtools

Expand Down

0 comments on commit a676f9d

Please sign in to comment.