From f876e664ab2f607af2e46fd75f50f5eef4e2c1bc Mon Sep 17 00:00:00 2001 From: hgzhaod Date: Fri, 14 Apr 2023 11:05:59 +0800 Subject: [PATCH] fix bug for compile error(https://gitee.com/src-openeuler/wxGTK3/issues/I6VGJC) --- wxGTK3.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wxGTK3.spec b/wxGTK3.spec index df25fd0..320569a 100644 --- a/wxGTK3.spec +++ b/wxGTK3.spec @@ -1,6 +1,6 @@ Name: wxGTK3 Version: 3.0.4 -Release: 8 +Release: 9 Summary: C++ Library for Cross-Platform Development License: GPL-2.0-or-later or LGPL-2.1-only @@ -116,7 +116,7 @@ export CPPUNIT_CONFIG="/usr/bin/pkg-config cppunit" #package gcc_secure will add _old suffix to compile tools gccexec=`file /usr/bin/gcc` -if [[ ${gccexec} =~ "shell script" ]]; then +if [[ ${gccexec} =~ "shell script" ]] && [[ -e /usr/bin/gcc_old ]]; then for line in `find . -name Makefile.in`; do sed -i 's/@CC@/@CC@_old/g' $line @@ -237,6 +237,9 @@ fi %changelog +* Fri Apr 14 2023 hgzhaod - 3.0.4-9 +- fix compile bug caused by no gcc_old + * Mon Nov 28 2022 huajingyun - 3.0.4-8 - modify wx-config to support loongarch64