set LDFLAGS in a manner compatible with el6
__global_ldflags is not set on el6, so only use that where available
This commit is contained in:
parent
ccc3322b44
commit
5302a3c717
@ -36,12 +36,14 @@ find -name .gitignore -delete
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
|
||||||
for dir in lib programs; do
|
for dir in lib programs; do
|
||||||
CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" %make_build -C "$dir"
|
CFLAGS="%{optflags}" %make_build -C "$dir"
|
||||||
done
|
done
|
||||||
|
|
||||||
%check
|
%check
|
||||||
CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" make -C tests test-zstd
|
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
|
||||||
|
CFLAGS="%{optflags}" make -C tests test-zstd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||||
|
Loading…
Reference in New Issue
Block a user