From 42e395af5ca39fbd16d4b2327fa45ceb7291c500 Mon Sep 17 00:00:00 2001 From: yangcheng1203 Date: Sun, 24 Apr 2022 16:58:11 +0800 Subject: [PATCH] add CFLAGS in build (cherry picked from commit 310329066e793c137075497fa6c5e15010132342) --- jbigkit.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jbigkit.spec b/jbigkit.spec index c330e95..086d39d 100644 --- a/jbigkit.spec +++ b/jbigkit.spec @@ -1,6 +1,6 @@ Name: jbigkit Version: 2.1 -Release: 18 +Release: 19 Summary: Lossless image compression library License: GPLv2+ @@ -43,6 +43,9 @@ files for %{name} development. %autosetup -n %{name}-%{version} -p1 %build +export CFLAGS="${CFLAGS:-%optflags}" +export CXXFLAGS="${CXXFLAGS:-%optflags}" +export FFLAGS="${FFLAGS:-%optflags}" %make_build %install @@ -81,6 +84,9 @@ make test %{_mandir}/man1/* %changelog +* Sun Apr 24 2022 yangcheng - 2.1-19 +- add CFLAGS in build + * Mon Apr 11 2022 xingxing - 2.1-18 - Type:CVE - CVE:CVE-2017-9937 -- Gitee