packaging: fix asan build 53/278553/1 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix accepted/tizen_8.0_base accepted/tizen_9.0_base accepted/tizen_base accepted/tizen_base_tool accepted/tizen_base_toolchain accepted/tizen_base_x tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base tizen_9.0_base tizen_base accepted/tizen/7.0/base/20230714.002923 accepted/tizen/7.0/base/hotfix/20230714.003738 accepted/tizen/7.0/base/tool/20221028.121305 accepted/tizen/7.0/base/tool/hotfix/20221115.085816 accepted/tizen/8.0/base/20231005.044755 accepted/tizen/9.0/base/20241030.075558 accepted/tizen/base/20230714.003329 accepted/tizen/base/tool/20220725.043005 accepted/tizen/base/toolchain/20240513.230941 accepted/tizen/base/x/20240520.013357 submit/tizen_7.0_base/20221028.201101 submit/tizen_7.0_base_hotfix/20221115.161601 submit/tizen_base/20220722.055237 tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorDongkyun Son <dongkyun.s@samsung.com>
Fri, 22 Jul 2022 02:56:16 +0000 (11:56 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 22 Jul 2022 02:56:16 +0000 (11:56 +0900)
Change-Id: If5908d239e1ba0ab02e9f2888d96618bcee11106
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/guile.spec

index 99a005cb49f0fa78954b9c9f10305007a75e65f1..eab4de287d83e3be6eedf5976ec6dbbf054a8041 100644 (file)
@@ -88,9 +88,15 @@ cp %{SOURCE1001} .
         ac_cv_libunistring=yes \
         ac_cv_libunistring_with_iconv_support=yes \
         PACKAGE_VERSION=%{version} \
+%if 0%{?asan}
+        CFLAGS="${CFLAGS} -Wno-error" \
+        CXXFLAGS="${CXXFLAGS} -Wno-error" \
+        LDFLAGS="-pthread" \
+%else
         CFLAGS="${CFLAGS} -static -Wno-error" \
         CXXFLAGS="${CXXFLAGS} -static -Wno-error" \
         LDFLAGS="-static -pthread" \
+%endif
         CPPFLAGS="-DHAVE_GC_IS_HEAP_PTR -DHAVE_GC_MOVE_DISAPPEARING_LINK" \
         BDW_GC_LIBS="-lgc"