From: Mauro Rossi Date: Sat, 17 Dec 2022 08:51:31 +0000 (+0100) Subject: Add "/vendor/${LIB}/hw" search path for non trebelized builds X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=HEAD;p=android-x86%2Fsystem-linkerconfig.git Add "/vendor/${LIB}/hw" search path for non trebelized builds Required by libvulkan loader in legacy mode, when (!is_fully_trebelized) is true, or vulkan HAL modules will not work with android-x86 non trebelized builds. Based on suggestion by Micheal Goffioul Change-Id: Iabb29367b46a822f7ef854da4f41b8252bd088b0 --- diff --git a/contents/namespace/systemdefault.cc b/contents/namespace/systemdefault.cc index a9bfdb1..506d869 100644 --- a/contents/namespace/systemdefault.cc +++ b/contents/namespace/systemdefault.cc @@ -49,6 +49,7 @@ Namespace BuildSystemDefaultNamespace([[maybe_unused]] const Context& ctx) { } if (!is_fully_treblelized) { ns.AddSearchPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); + ns.AddSearchPath("/vendor/${LIB}/hw", AsanPath::WITH_DATA_ASAN); ns.AddSearchPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); }