New version of libtsm.so used by cli app needs tfind() and
tsearch() symbols and this patch modifies the Makefile to add their
musl implementations.

Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
 Makefile                                  | 3 +++
 exported_symbols/osv_ld-musl.so.1.symbols | 2 ++
 exported_symbols/osv_libc.so.6.symbols    | 2 ++
 3 files changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 597854d6..a0878787 100644
--- a/Makefile
+++ b/Makefile
@@ -1455,6 +1455,9 @@ libc += arch/$(arch)/ucontext/ucontext.o
 libc += string/memmove.o
 endif
 
+musl += search/tfind.o
+musl += search/tsearch.o
+
 musl += stdio/__fclose_ca.o
 libc += stdio/__fdopen.o
 $(out)/libc/stdio/__fdopen.o: CFLAGS += --include libc/syscall_to_function.h
diff --git a/exported_symbols/osv_ld-musl.so.1.symbols 
b/exported_symbols/osv_ld-musl.so.1.symbols
index 3c2c5f53..f1c61a3f 100644
--- a/exported_symbols/osv_ld-musl.so.1.symbols
+++ b/exported_symbols/osv_ld-musl.so.1.symbols
@@ -1104,6 +1104,7 @@ tcsetpgrp
 telldir
 tempnam
 textdomain
+tfind
 tgamma
 tgammaf
 tgammal
@@ -1140,6 +1141,7 @@ truncate
 truncate64
 truncf
 truncl
+tsearch
 ttyname
 ttyname_r
 __tzname
diff --git a/exported_symbols/osv_libc.so.6.symbols 
b/exported_symbols/osv_libc.so.6.symbols
index 8b6c8af4..39e79692 100644
--- a/exported_symbols/osv_libc.so.6.symbols
+++ b/exported_symbols/osv_libc.so.6.symbols
@@ -906,6 +906,7 @@ tcsetpgrp
 telldir
 tempnam
 textdomain
+tfind
 time
 timegm
 timerfd_create
@@ -936,6 +937,7 @@ __towupper_l
 towupper_l
 truncate
 truncate64
+tsearch
 ttyname
 ttyname_r
 __tzname
-- 
2.32.0

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/20220104031833.83919-4-jwkozaczuk%40gmail.com.

Reply via email to