Add -d option to makedist.sh to generate a DEBUG disttribution

This commit is contained in:
Andrea Mazzoleni 2015-12-16 23:25:36 +01:00
parent 61402049bc
commit db679dc276
2 changed files with 18 additions and 7 deletions

View file

@ -261,7 +261,8 @@ AM_CONDITIONAL(HAVE_EMULATOR, [test x"$EMULATOR" != x])
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],[enable debugging])],
[
CFLAGS="-O0 -g -pthread -Wall -Wextra"
CFLAGS="-Og -g -pthread -Wall -Wextra"
AC_CHECK_CC_OPT([-rdynamic], CFLAGS="$CFLAGS -rdynamic", [])
],
[])

View file

@ -1,26 +1,36 @@
#!/bin/sh
#
CHECK=check
DEBUG=
if test "x$1" = "x-f"; then
CHECK=clean
fi
if test "x$1" = "x-d"; then
CHECK=clean
DEBUG=--enable-debug
fi
make distclean
# Reconfigure (with force) to get the latest revision from git
autoreconf -f
if ! ./configure.windows-x86; then
if ! ./configure.windows-x86 $DEBUG; then
exit 1
fi
if ! test "x$1" = "x-f"; then
if ! make check; then
exit 1
fi
if ! make $CHECK; then
exit 1
fi
if ! make distwindows-x86 distclean; then
exit 1
fi
if ! ./configure.windows-x64; then
if ! ./configure.windows-x64 $DEBUG; then
exit 1
fi