mirror of https://github.com/getdnsapi/getdns.git
-Wpedantic -Werror via XTRA_CFLAGS and make
This commit is contained in:
parent
6e9b1b5f53
commit
86341fea08
src
Makefile.in
test/tpkg
100-compile.tpkg
200-stub-only-compile.tpkg
300-event-loops-configure.tpkg
315-event-loops-compile.tpkg
315-event-loops-compile.dsc315-event-loops-compile.post315-event-loops-compile.pre315-event-loops-compile.test
320-event-loops-compile.tpkg
323-event-loops-configure.tpkg
326-event-loops-compile.tpkg
|
@ -48,7 +48,7 @@ srcdir = @srcdir@
|
||||||
LIBTOOL = ../libtool
|
LIBTOOL = ../libtool
|
||||||
|
|
||||||
CC=@CC@
|
CC=@CC@
|
||||||
CFLAGS=-I$(srcdir) -I. @CFLAGS@ @CPPFLAGS@
|
CFLAGS=-I$(srcdir) -I. @CFLAGS@ @CPPFLAGS@ $(XTRA_CFLAGS)
|
||||||
LDFLAGS=@LDFLAGS@ @LIBS@
|
LDFLAGS=@LDFLAGS@ @LIBS@
|
||||||
|
|
||||||
EXTENSION_LIBEVENT_LIB=@EXTENSION_LIBEVENT_LIB@
|
EXTENSION_LIBEVENT_LIB=@EXTENSION_LIBEVENT_LIB@
|
||||||
|
|
|
@ -25,14 +25,4 @@ done
|
||||||
rm -fr "${BUILDDIR}/build"
|
rm -fr "${BUILDDIR}/build"
|
||||||
mkdir "${BUILDDIR}/build"
|
mkdir "${BUILDDIR}/build"
|
||||||
cd "${BUILDDIR}/build"
|
cd "${BUILDDIR}/build"
|
||||||
if [ -z "$CFLAGS" ]
|
"${SRCROOT}/configure" $* --prefix "${BUILDDIR}/install"
|
||||||
then
|
|
||||||
if (echo $*|grep -q CFLAGS)
|
|
||||||
then
|
|
||||||
"${SRCROOT}/configure" $* --prefix "${BUILDDIR}/install"
|
|
||||||
else
|
|
||||||
"${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --prefix "${BUILDDIR}/install"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
"${SRCROOT}/configure" $* --prefix "${BUILDDIR}/install"
|
|
||||||
fi
|
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||||
|
|
||||||
cd "${BUILDDIR}/build"
|
cd "${BUILDDIR}/build"
|
||||||
make
|
make XTRA_CFLAGS='-Wpedantic -Werror'
|
||||||
|
|
|
@ -25,14 +25,4 @@ done
|
||||||
rm -fr "${BUILDDIR}/build-stub-only"
|
rm -fr "${BUILDDIR}/build-stub-only"
|
||||||
mkdir "${BUILDDIR}/build-stub-only"
|
mkdir "${BUILDDIR}/build-stub-only"
|
||||||
cd "${BUILDDIR}/build-stub-only"
|
cd "${BUILDDIR}/build-stub-only"
|
||||||
if [ -z "$CFLAGS" ]
|
"${SRCROOT}/configure" $* --enable-stub-only
|
||||||
then
|
|
||||||
if (echo $*|grep -q CFLAGS)
|
|
||||||
then
|
|
||||||
"${SRCROOT}/configure" $* --enable-stub-only
|
|
||||||
else
|
|
||||||
"${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-stub-only
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
"${SRCROOT}/configure" $* --enable-stub-only
|
|
||||||
fi
|
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||||
|
|
||||||
cd "${BUILDDIR}/build-stub-only"
|
cd "${BUILDDIR}/build-stub-only"
|
||||||
make
|
make XTRA_CFLAGS='-Wpedantic -Werror'
|
||||||
|
|
|
@ -7,32 +7,10 @@
|
||||||
rm -fr "${BUILDDIR}/build-event-loops"
|
rm -fr "${BUILDDIR}/build-event-loops"
|
||||||
mkdir "${BUILDDIR}/build-event-loops"
|
mkdir "${BUILDDIR}/build-event-loops"
|
||||||
cd "${BUILDDIR}/build-event-loops"
|
cd "${BUILDDIR}/build-event-loops"
|
||||||
if [ -z "$CFLAGS" ]
|
"${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev --with-libuv \
|
||||||
then
|
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev \
|
||||||
if (echo $*|grep -q CFLAGS)
|
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libuv \
|
||||||
then
|
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libev --with-libuv \
|
||||||
"${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev --with-libuv \
|
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent \
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev \
|
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libev \
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libuv \
|
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libuv
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libuv
|
|
||||||
else
|
|
||||||
"${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-all-drafts --with-getdns_query --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-all-drafts --with-getdns_query --with-libevent \
|
|
||||||
|| "${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-all-drafts --with-getdns_query --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" CFLAGS="-Wpedantic -Werror" $* --enable-all-drafts --with-getdns_query --with-libuv
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
"${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libevent \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --with-getdns_query --with-libuv
|
|
||||||
fi
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
BaseName: 315-event-loops-compile
|
||||||
|
Version: 1.0
|
||||||
|
Description: Compile
|
||||||
|
CreationDate: do 8 dec 2016 23:38:18 CET
|
||||||
|
Maintainer: Willem Toorop
|
||||||
|
Category:
|
||||||
|
Component:
|
||||||
|
CmdDepends:
|
||||||
|
Depends: 300-event-loops-configure.tpkg
|
||||||
|
Help:
|
||||||
|
Pre: 315-event-loops-compile.pre
|
||||||
|
Post: 315-event-loops-compile.post
|
||||||
|
Test: 315-event-loops-compile.test
|
||||||
|
AuxFiles:
|
||||||
|
Passed:
|
||||||
|
Failure:
|
|
@ -1,4 +1,4 @@
|
||||||
# #-- 326-event-loops-compile.post --#
|
# #-- 315-event-loops-compile.post --#
|
||||||
# source the master var file when it's there
|
# source the master var file when it's there
|
||||||
if [ -f ../.tpkg.var.master ]
|
if [ -f ../.tpkg.var.master ]
|
||||||
then
|
then
|
|
@ -1,4 +1,4 @@
|
||||||
# #-- 326-event-loops-compile.pre--#
|
# #-- 315-event-loops-compile.pre--#
|
||||||
# source the master var file when it's there
|
# source the master var file when it's there
|
||||||
if [ -f ../.tpkg.var.master ]
|
if [ -f ../.tpkg.var.master ]
|
||||||
then
|
then
|
|
@ -1,8 +1,8 @@
|
||||||
# #-- 326-event-loops-compile.test --#
|
# #-- 315-event-loops-compile.test --#
|
||||||
# source the master var file when it's there
|
# source the master var file when it's there
|
||||||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
||||||
# use .tpkg.var.test for in test variable passing
|
# use .tpkg.var.test for in test variable passing
|
||||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||||
|
|
||||||
cd "${BUILDDIR}/build-event-loops"
|
cd "${BUILDDIR}/build-event-loops"
|
||||||
make
|
make XTRA_CFLAGS='-Wpedantic -Werror'
|
|
@ -5,4 +5,5 @@
|
||||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
||||||
|
|
||||||
cd "${BUILDDIR}/build-event-loops"
|
cd "${BUILDDIR}/build-event-loops"
|
||||||
|
make clean
|
||||||
make
|
make
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
BaseName: 323-event-loops-configure
|
|
||||||
Version: 1.0
|
|
||||||
Description: Configure for maximum coverage
|
|
||||||
CreationDate: do 8 dec 2016 16:21:08 CET
|
|
||||||
Maintainer: Willem Toorop
|
|
||||||
Category:
|
|
||||||
Component:
|
|
||||||
CmdDepends:
|
|
||||||
Depends:
|
|
||||||
Help:
|
|
||||||
Pre: 323-event-loops-configure.pre
|
|
||||||
Post:
|
|
||||||
Test: 323-event-loops-configure.test
|
|
||||||
AuxFiles:
|
|
||||||
Passed:
|
|
||||||
Failure:
|
|
|
@ -1,14 +0,0 @@
|
||||||
# #-- 323-event-loops-configure.pre--#
|
|
||||||
# source the master var file when it's there
|
|
||||||
if [ -f ../.tpkg.var.master ]
|
|
||||||
then
|
|
||||||
source ../.tpkg.var.master
|
|
||||||
else
|
|
||||||
(
|
|
||||||
cd ..
|
|
||||||
[ -f "${TPKG_SRCDIR}/setup-env.sh" ] \
|
|
||||||
&& sh "${TPKG_SRCDIR}/setup-env.sh"
|
|
||||||
) && source ../.tpkg.var.master
|
|
||||||
fi
|
|
||||||
# use .tpkg.var.test for in test variable passing
|
|
||||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
|
|
@ -1,16 +0,0 @@
|
||||||
# #-- 323-event-loops-configure.test --#
|
|
||||||
# source the master var file when it's there
|
|
||||||
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
|
|
||||||
# use .tpkg.var.test for in test variable passing
|
|
||||||
[ -f .tpkg.var.test ] && source .tpkg.var.test
|
|
||||||
|
|
||||||
rm -fr "${BUILDDIR}/build-event-loops"
|
|
||||||
mkdir "${BUILDDIR}/build-event-loops"
|
|
||||||
cd "${BUILDDIR}/build-event-loops"
|
|
||||||
"${SRCROOT}/configure" $* --enable-all-drafts --enable-all-debugging --with-getdns_query --with-libevent --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --enable-all-debugging --with-getdns_query --with-libevent --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --enable-all-debugging --with-getdns_query --with-libevent --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --enable-all-debugging --with-getdns_query --with-libev --with-libuv \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --enable-all-debugging --with-getdns_query --with-libevent \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --enable-all-debugging --with-getdns_query --with-libev \
|
|
||||||
|| "${SRCROOT}/configure" $* --enable-all-drafts --enable-all-debugging --with-getdns_query --with-libuv
|
|
|
@ -1,16 +0,0 @@
|
||||||
BaseName: 326-event-loops-compile
|
|
||||||
Version: 1.0
|
|
||||||
Description: Compile
|
|
||||||
CreationDate: do 8 dec 2016 16:21:21 CET
|
|
||||||
Maintainer: Willem Toorop
|
|
||||||
Category:
|
|
||||||
Component:
|
|
||||||
CmdDepends:
|
|
||||||
Depends: 300-event-loops-configure.tpkg
|
|
||||||
Help:
|
|
||||||
Pre: 326-event-loops-compile.pre
|
|
||||||
Post: 326-event-loops-compile.post
|
|
||||||
Test: 326-event-loops-compile.test
|
|
||||||
AuxFiles:
|
|
||||||
Passed:
|
|
||||||
Failure:
|
|
Loading…
Reference in New Issue