BuildRequires: systemd-devel
%endif
+%if 0%{?rhel} == 8
+BuildRequires: boost1.78-devel
+%else
BuildRequires: boost-devel
+%endif
BuildRequires: python3-pyyaml
BuildRequires: clang
BuildRequires: lld
%build
# We need to build with LLVM/clang to be able to use LTO, since we are linking against a static Rust library built with LLVM
+%if 0%{?rhel} == 8
+export BOOST_INCLUDEDIR=/usr/include/boost1.78
+export BOOST_LIBRARYDIR=/usr/lib64/boost1.78
+%endif
export CC=clang
export CXX=clang++
# build-id SHA1 prevents an issue with the debug symbols ("export: `-Wl,--build-id=sha1': not a valid identifier")
BuildRequires: krb5-devel
BuildRequires: p11-kit-devel
BuildRequires: libcurl-devel
+%if 0%{?rhel} == 8
+BuildRequires: boost1.78-devel
+%else
BuildRequires: boost-devel
+%endif
BuildRequires: bison
BuildRequires: openssl-devel
BuildRequires: libsodium-devel
%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION}
%build
-export CPPFLAGS="-DLDAP_DEPRECATED"
+%if 0%{?rhel} == 8
+export BOOST_INCLUDEDIR=/usr/include/boost1.78
+export BOOST_LIBRARYDIR=/usr/lib64/boost1.78
+export CPPFLAGS=-I$BOOST_INCLUDEDIR
+export LDFLAGS=-L$BOOST_LIBRARYDIR
+%endif
+export CPPFLAGS="$CPPFLAGS -DLDAP_DEPRECATED"
%configure \
--enable-option-checking=fatal \