[infra/gbs] Workaround dlopen ASan issue accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.231944 accepted/tizen/unified/20240912.084748 accepted/tizen/unified/dev/20240913.055505 accepted/tizen/unified/toolchain/20241004.101757 accepted/tizen/unified/x/20240913.014857 accepted/tizen/unified/x/asan/20241014.000132 tizen_9.0_m2_release
authorHyeongseok Oh <hseok82.oh@samsung.com>
Wed, 11 Sep 2024 10:25:03 +0000 (19:25 +0900)
committerHyeongseok Oh <hseok82.oh@samsung.com>
Wed, 11 Sep 2024 10:25:03 +0000 (19:25 +0900)
This commit changes plugin install path on ASan build.
dlopen() on ASan build cannot uses RPATH setting

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
packaging/nnfw.spec

index 3dc113b..8395c49 100644 (file)
@@ -230,8 +230,13 @@ mkdir -p %{buildroot}%{_libdir}/nnfw/loader
 mkdir -p %{buildroot}%{_bindir}
 mkdir -p %{buildroot}%{_includedir}
 install -m 644 build/out/lib/*.so %{buildroot}%{_libdir}
+%if "%{asan}" == "1"
+install -m 644 build/out/lib/nnfw/backend/*.so %{buildroot}%{_libdir}
+install -m 644 build/out/lib/nnfw/loader/*.so %{buildroot}%{_libdir}
+%else
 install -m 644 build/out/lib/nnfw/backend/*.so %{buildroot}%{_libdir}/nnfw/backend
 install -m 644 build/out/lib/nnfw/loader/*.so %{buildroot}%{_libdir}/nnfw/loader
+%endif
 install -m 755 build/out/bin/onert-minimal-app %{buildroot}%{_bindir}
 cp -r build/out/include/* %{buildroot}%{_includedir}/
 
@@ -292,8 +297,10 @@ install -m 644 build/out/lib/nnfw/odc/*.so %{buildroot}%{_libdir}/nnfw/odc
 %defattr(-,root,root,-)
 %ifarch arm armv7l armv7hl aarch64 x86_64 %ix86 riscv64
 %{_libdir}/*.so
+%if "%{asan}" != "1"
 %{_libdir}/nnfw/backend/*.so
 %{_libdir}/nnfw/loader/*.so
+%endif
 %exclude %{_includedir}/CL/*
 %endif