depend on -lrt explicitly for clock_gettime

This commit is contained in:
Pádraig Brady 2017-11-09 23:48:22 -08:00
parent 299472f6bf
commit ff994bc472
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ find -name .gitignore -delete
%endif
%build
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags} -lrt" ; export LDFLAGS ;}
for dir in lib programs; do
CFLAGS="%{optflags}" %make_build -C "$dir"
done
@ -55,7 +55,7 @@ CFLAGS="%{optflags}" CXXFLAGS="%{optflags} -std=c++11" %make_build -C 'contrib/p
%endif
%check
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags} -lrt" ; export LDFLAGS ;}
CFLAGS="%{optflags}" make -C tests test-zstd
%if 0%{?with_pzstd}
CFLAGS="%{optflags}" CXXFLAGS="%{optflags} -std=c++11" make -C contrib/pzstd test