From: Mateusz Moscicki Date: Mon, 27 Feb 2023 14:23:50 +0000 (+0100) Subject: Workaround for ASAN problem X-Git-Tag: accepted/tizen/7.0/unified/20230228.093323^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F289042%2F2;p=platform%2Fcore%2Fsystem%2Fupdate-control.git Workaround for ASAN problem https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84732 Change-Id: I8cb27f60994a8f9cb94d8254cdcf62eec937bd2d --- diff --git a/packaging/update-control.spec b/packaging/update-control.spec index 58527d8..055b08c 100644 --- a/packaging/update-control.spec +++ b/packaging/update-control.spec @@ -65,6 +65,10 @@ cp %{SOURCE1001} . %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` +%if 0%{?asan:1} +export CFLAGS+=" -Wno-stringop-truncation" +%endif + %cmake . -DMAJORVER=${MAJORVER} \ -DFULLVER=%{version} \ -DDEBUG_MODE=on \