From 7f88ab3021ffa9e57790995a802ab2af0d130d76 Mon Sep 17 00:00:00 2001 From: zhsnew Date: Tue, 11 Jun 2024 15:26:19 +0800 Subject: [PATCH] Bugfix: libtrpc_Sadmin_Slibmutex.so: error: undefined reference to '_dl_sym' --- trpc/admin/mutex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trpc/admin/mutex.cc b/trpc/admin/mutex.cc index 0b8db196..7e72aae2 100644 --- a/trpc/admin/mutex.cc +++ b/trpc/admin/mutex.cc @@ -33,7 +33,7 @@ namespace trpc::admin { extern "C" { -extern void* _dl_sym(void* handle, const char* symbol, void* caller); +extern void* __attribute__((weak)) _dl_sym(void* handle, const char* symbol, void* caller); } ///////////////////////////////////////////////////////////////////////////////////