From 7c2ed3cef7791060defc6ed4056dfd3ae8d8952e Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 30 Sep 2020 11:26:31 +0200 Subject: [PATCH] el6: set __STDC_FORMAT_MACROS during package builds --- builder-support/specs/pdns-recursor.spec | 3 ++- builder-support/specs/pdns.spec | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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} -- 2.47.2