[packages/python3-cffsubr] - build tx with optflags (for debuginfo)

qboosh qboosh at pld-linux.org
Fri Dec 17 21:26:11 CET 2021


commit 9aec8564c12729ee8c69c3914dd244b818f4fae4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Dec 17 21:26:47 2021 +0100

    - build tx with optflags (for debuginfo)

 python3-cffsubr.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/python3-cffsubr.spec b/python3-cffsubr.spec
index 0f3a90f..5875199 100644
--- a/python3-cffsubr.spec
+++ b/python3-cffsubr.spec
@@ -22,8 +22,8 @@ BuildRequires:	python3-setuptools_scm
 BuildRequires:	python3-fonttools >= 4.10.2
 %if "%{py3_ver}" == "3.6"
 BuildRequires:	python3-importlib_resources
-BuildRequires:	python3-pytest
 %endif
+BuildRequires:	python3-pytest
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -41,6 +41,12 @@ AFDKO.
 %setup -q -n cffsubr-%{version}
 
 %build
+# prebuild tx (like setup does) but with our optflags
+%{__make} -C external/afdko/c/tx/build/linux/gcc/release \
+	CC="%{__cc}" \
+	XFLAGS="%{rpmcflags} %{rpmcppflags}"
+cp -dR external/afdko/c/tx/exe/linux/release/tx external/afdko/c/tx/build_all
+
 %py3_build
 
 %if %{with tests}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-cffsubr.git/commitdiff/9aec8564c12729ee8c69c3914dd244b818f4fae4



More information about the pld-cvs-commit mailing list