packaging: fix ASAN build error 23/271223/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20220222.132744 submit/tizen_6.5/20220218.093127
authorInki Dae <inki.dae@samsung.com>
Mon, 3 Jan 2022 12:01:09 +0000 (21:01 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 17 Feb 2022 04:30:53 +0000 (04:30 +0000)
In some gcc-9 version, build with -O3 has build issue and in
Tizen gcc, specifically for asan build. Do debug build to change
from -O3 to -O0 to fix the issue for asan build.

Change-Id: Ieb254fd4e07e98f7473f77cf5f0ce38040702ed4
Ref: https://github.com/ARM-software/ComputeLibrary/issues/878
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
(cherry picked from commit 68f8490cad3979c39d28eaf8736fa08b55ef6045)

packaging/libarmcl.spec

index 4739105e0bc3837298a16c4a46ae126a5ccffc90..898a6f91a8660b46d084fa2cd67270f07b8c2b4e 100644 (file)
@@ -49,7 +49,11 @@ echo %{_builddir}
 # but to use native 'ar' and 'ranlib' without any prefix.
 scons -j8              \
        Werror=0        \
-       debug=0         \
+%if 0%{?asan}
+       debug=1         \
+%else
+       debug=0         \
+%endif
 %if 0%{?NEON_SUPPORT} == 1
        neon=1          \
 %endif  # NEON_SUPPORT