Honour distribution LDFLAGS (e.g. for the annocheck)

Also removed spurious whitespaces and fixed mixed tabs and spaces.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2022-02-15 18:31:11 +01:00
parent 3131d5f897
commit e3066a64fd

View File

@ -35,7 +35,7 @@ cp %{SOURCE1} debian/
sed -i -e 's\/lib\/%{_lib}\g' debian/libcdb.pc
%build
make %{?_smp_mflags} staticlib sharedlib cdb-shared CFLAGS="%{optflags}"
make %{?_smp_mflags} staticlib sharedlib cdb-shared CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}"
%install
mkdir -p %{buildroot}%{_libdir}