From 8bd113ab322a9777e995ffbedd7e12a343bbb830 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Tue, 7 Nov 2023 12:40:54 +0900 Subject: [PATCH] Fix ASAN build error with GBS 0.25.30 [Version] 1.12.0-1 [Issue Type] ASAN build Change-Id: I271a95ed2befda0e774cd4baa1670af2242e3ae3 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 969f04d..18bede7 100644 --- a/packaging/libvpx.spec +++ b/packaging/libvpx.spec @@ -1,6 +1,6 @@ Name: libvpx Version: 1.12.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