dnsdist: Fix FTBFS with GCC 11

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2021-07-07 20:18:29 +00:00
committed by Arne Fitzenreiter
parent c26c751876
commit da1ebf7552
2 changed files with 24 additions and 3 deletions

View File

@@ -31,14 +31,12 @@ DL_FILE = $(THISAPP).tar.bz2
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
#SUP_ARCH = x86_64
SUP_ARCH = none
PROG = dnsdist
PAK_VER = 9
DEPS =
MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 2048)))
MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 2048 )))
###############################################################################
# Top-level Rules
@@ -81,6 +79,7 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && patch -Np2 < $(DIR_SRC)/src/patches/dnsdist-1.6.0-missing-mutex-header.patch
cd $(DIR_APP) && ./configure \
--prefix=/usr \
--sysconfdir=/etc \