mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Add -d option to makedist.sh to generate a DEBUG disttribution
This commit is contained in:
parent
61402049bc
commit
db679dc276
2 changed files with 18 additions and 7 deletions
|
|
@ -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", [])
|
||||
],
|
||||
[])
|
||||
|
||||
|
|
|
|||
22
makedist.sh
22
makedist.sh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue