From 00be7d952ecc0e2d7c52ba5487fbbb0ed45624ac Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Tue, 7 Nov 2023 12:43:15 +0900 Subject: [PATCH] Fix ASAN build error with GBS 0.25.30 [Version] 1.10.0-1 [Issue Type] ASAN build Change-Id: I73f5cf5d517df9881a4db6db2892298d88a4f30c Signed-off-by: Jeongmo Yang --- packaging/libvpx.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/libvpx.spec b/packaging/libvpx.spec index ecc6771..5a67a2a 100644 --- a/packaging/libvpx.spec +++ b/packaging/libvpx.spec @@ -1,6 +1,6 @@ Name: libvpx Version: 1.10.0 -Release: 0 +Release: 1 License: BSD-3-Clause Summary: VP8 codec library Url: http://www.webmproject.org/ @@ -51,6 +51,9 @@ cp %{SOURCE1001} . %build cd build export CFLAGS="%{optflags}" +%if "%{asan}" == "1" +export LDFLAGS+=" -lasan" +%endif # It is only an emulation of autotools configure; the macro does not work # libvpx default enable NEON support on ARMv7, unfortunately some ARMv7 -- 2.7.4