Fix ASAN build error with GBS 0.25.30 03/301003/1 accepted/tizen/8.0/unified/20231108.165832
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 7 Nov 2023 03:40:54 +0000 (12:40 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 7 Nov 2023 03:41:54 +0000 (12:41 +0900)
[Version] 1.12.0-1
[Issue Type] ASAN build

Change-Id: I271a95ed2befda0e774cd4baa1670af2242e3ae3
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libvpx.spec

index 969f04d..18bede7 100644 (file)
@@ -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