From b33f0cc7fc54e2de7bb0083afabce478d7a85cbc Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 24 May 2026 10:28:41 +0200 Subject: [PATCH] teflon/tests: avoid loading build-tree tensorflow-lite stub at runtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It can be quite confusing to see the tests failing to load models without knowing why. To avoid making people waste time with strace, link with the stubs at build time but look for the actual implementation at run time. Reviewed-by: MaĆ­ra Canal Part-of: --- src/gallium/targets/teflon/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/targets/teflon/meson.build b/src/gallium/targets/teflon/meson.build index 6a4d1aa7f84..8dc80bc5626 100644 --- a/src/gallium/targets/teflon/meson.build +++ b/src/gallium/targets/teflon/meson.build @@ -18,9 +18,10 @@ libteflon = shared_library( if with_tests tensorflow_lite = shared_library( - 'tensorflow-lite', + 'tensorflow-lite-stub', [ 'tflite-stub.c' ], include_directories : [ inc_include ], + link_args : [ '-Wl,-soname,libtensorflow-lite.so' ], install : false, )