Pass perl checks by pointing to fresh build

This commit is contained in:
Petr Menšík 2017-01-12 20:24:40 +01:00
parent 96bf60c90b
commit f2da103c7a

View File

@ -185,19 +185,20 @@ pushd examples
--with-trust-anchor=%{_sharedstatedir}/unbound/root.key
popd
# We cannot use the built-in --with-p5-dns-ldns
%if %{with_perl}
pushd contrib/DNS-LDNS
perl Makefile.PL INSTALLDIRS=vendor INC="-I. -I../.."
make
popd
%endif
make %{?_smp_mflags}
make -C drill %{?_smp_mflags}
make -C examples %{?_smp_mflags}
make %{?_smp_mflags} doc
# We cannot use the built-in --with-p5-dns-ldns
%if %{with_perl}
pushd contrib/DNS-LDNS
LD_LIBRARY_PATH="../../lib:$LD_LIBRARY_PATH" perl \
Makefile.PL INSTALLDIRS=vendor INC="-I. -I../.." LIBS="-L../../lib"
make
popd
%endif
# specfic hardening options should not end up in ldns-config
sed -i "s/-Wl,-z,relro,-z,now -pie//" packaging/ldns-config