[packages/libdeflate] - avoid rebuilding with default flags during install
qboosh
qboosh at pld-linux.org
Sun Mar 28 16:06:18 CEST 2021
commit 7ab71862b6a79a8b84a12d960b7e19acc04da35e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 28 16:05:58 2021 +0200
- avoid rebuilding with default flags during install
libdeflate.spec | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/libdeflate.spec b/libdeflate.spec
index ff75f53..c398418 100644
--- a/libdeflate.spec
+++ b/libdeflate.spec
@@ -62,13 +62,20 @@ Statyczna biblioteka libdeflate.
%{__make} \
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
+ CPPFLAGS="%{rpmcppflags}" \
LDFLAGS="%{rpmldflags}" \
V=1
%install
rm -rf $RPM_BUILD_ROOT
+# pass also build flags because of .build-config check in Makefile
%{__make} install \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ CPPFLAGS="%{rpmcppflags}" \
+ LDFLAGS="%{rpmldflags}" \
+ V=1 \
DESTDIR=$RPM_BUILD_ROOT \
BINDIR=%{_bindir} \
INCDIR=%{_includedir} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libdeflate.git/commitdiff/7ab71862b6a79a8b84a12d960b7e19acc04da35e
More information about the pld-cvs-commit
mailing list