+++ /dev/null
-#!/bin/sh
-if [ "$0" != "./build-scripts/build-recursor-semistatic" ]; then
- echo "Please run me from the root checkout dir" >&2
- exit 1
-fi
-
-if [ -z "$VERSION" ]; then
- echo 'Please set $VERSION' >&2
- exit 1
-fi
-
-if [ -z "$RELEASE" ];then
- echo 'Please set $RELEASE' >&2
- exit 1
-fi
-
-if [ -z "$DISTDIR" ]; then
- DISTDIR=pdns
-fi
-
-set -e
-set -x
-
-export DEBFULLNAME="PowerDNS.COM BV"
-export DEBEMAIL="noreply@powerdns.com"
-DEBPKGNAME=pdns-recursor_$VERSION
-
-cd $DISTDIR
-
-dh_make -s -f ../pdns-recursor-$VERSION.tar.bz2 -p $DEBPKGNAME < /dev/null
-cp pdns-recursor.init.d debian/init.d
-#[ -e debian/control ] || dh_make -e powerdns.support@powerdns.com -s -r cdbs -f ../pdns-recursor-$VERSION.tar.bz2 < /dev/null
-perl -i -pe 's/Description: <.*>/Description: extremely powerful and versatile recursing nameserver/' debian/control
-# only to be nice to people usind the generated .dsc
-perl -i -pe 's/(Build-Depends: .*)/$1, libboost-dev, libboost-serialization-dev, liblua5.2-0-dev/' debian/control
-
-cat > debian/changelog << EOF
-pdns-recursor (${VERSION}-${RELEASE}) unstable; urgency=medium
-
- * Automatic build
-
- -- PowerDNS.COM AutoBuilder <noreply@powerdns.com> $(date -R)
-
-EOF
-
-# Fix the rpm version number
-perl -i -pe "s/Version: .*/Version: ${VERSION}/" pdns-recursor.spec
-perl -i -pe "s/Release: .*/Release: ${RELEASE}/" pdns-recursor.spec
-export LUA=1
-export STATIC=semi
-fakeroot debian/rules binary
-./configure
-fakeroot rpmbuild -bb pdns-recursor.spec
# detect pkg-config explicitly
PKG_PROG_PKG_CONFIG
-# check if we want a static build
-AC_MSG_CHECKING([whether we will be building static binaries])
-
-AC_ARG_ENABLE([static-binaries],
- [AS_HELP_STRING([--enable-static-binaries],[build static binaries @<:@default=no@:>@])],
- [static=$enableval],
- [static=no],
-)
-AC_MSG_RESULT([$static])
-
-AS_IF([test "x$static" != "xno"], [
- PKG_CONFIG="$PKG_CONFIG --static"
-])
-
AC_CHECK_HEADERS(
[sys/mman.h],
[AC_CHECK_FUNC(
PDNS_ENABLE_PKCS11
PDNS_ENABLE_GSS_TSIG
-AS_IF([test "x$static" != "xno"], [
- LDFLAGS="-all-static $LDFLAGS"
-])
-
modules="bind gmysql random"
AC_ARG_WITH([modules],
[AS_HELP_STRING([--with-modules], [which backends to compile with @<:@default=bind gmysql random@:>@])],
LDFLAGS="$RELRO_LDFLAGS $LDFLAGS"
-AS_IF([test "x$static" != "xyes"], [
- CFLAGS="$PIE_CFLAGS $CFLAGS"
- CXXFLAGS="$PIE_CFLAGS $CXXFLAGS"
- PROGRAM_LDFLAGS="$PIE_LDFLAGS $PROGRAM_LDFLAGS"
-])
+CFLAGS="$PIE_CFLAGS $CFLAGS"
+CXXFLAGS="$PIE_CFLAGS $CXXFLAGS"
+PROGRAM_LDFLAGS="$PIE_LDFLAGS $PROGRAM_LDFLAGS"
AC_SUBST([PROGRAM_LDFLAGS])
PDNS_ENABLE_COVERAGE
LDFLAGS="$RELRO_LDFLAGS $LDFLAGS"
-AS_IF([test "x$static" != "xyes"], [
- CFLAGS="$PIE_CFLAGS $CFLAGS"
- CXXFLAGS="$PIE_CFLAGS $CXXFLAGS"
- PROGRAM_LDFLAGS="$PIE_LDFLAGS $PROGRAM_LDFLAGS"
-])
+CFLAGS="$PIE_CFLAGS $CFLAGS"
+CXXFLAGS="$PIE_CFLAGS $CXXFLAGS"
+PROGRAM_LDFLAGS="$PIE_LDFLAGS $PROGRAM_LDFLAGS"
AC_SUBST([PROGRAM_LDFLAGS])
AC_SUBST([AM_CPPFLAGS],