From: Peter van Dijk Date: Wed, 30 Sep 2020 09:26:31 +0000 (+0200) Subject: el6: set __STDC_FORMAT_MACROS during package builds X-Git-Tag: auth-4.4.0-alpha2~60^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9564%2Fhead;p=thirdparty%2Fpdns.git el6: set __STDC_FORMAT_MACROS during package builds --- diff --git a/builder-support/specs/pdns-recursor.spec b/builder-support/specs/pdns-recursor.spec index 4e9608e239..4b033b2134 100644 --- a/builder-support/specs/pdns-recursor.spec +++ b/builder-support/specs/pdns-recursor.spec @@ -74,7 +74,8 @@ package if you need a dns cache for your network. --enable-unit-tests \ %if 0%{?rhel} == 6 --without-protobuf \ - --with-boost=/usr/include/boost148 LIBRARY_PATH=/usr/lib64/boost148 + --with-boost=/usr/include/boost148 LIBRARY_PATH=/usr/lib64/boost148 \ + CPPFLAGS=-D__STDC_FORMAT_MACROS make %{?_smp_mflags} LIBRARY_PATH=/usr/lib64/boost148 %else diff --git a/builder-support/specs/pdns.spec b/builder-support/specs/pdns.spec index 33d9bf551a..d043b5ffda 100644 --- a/builder-support/specs/pdns.spec +++ b/builder-support/specs/pdns.spec @@ -223,7 +223,8 @@ export CPPFLAGS="-DLDAP_DEPRECATED" --disable-lua-records \ --without-protobuf \ --with-boost=/usr/include/boost148/ LDFLAGS=-L/usr/lib64/boost148 \ - CXXFLAGS=-std=gnu++11 + CXXFLAGS=-std=gnu++11 \ + CPPFLAGS="${CPPFLAGS} -D__STDC_FORMAT_MACROS" %endif make %{?_smp_mflags}