depend on -lrt explicitly for clock_gettime
This commit is contained in:
parent
299472f6bf
commit
ff994bc472
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue