Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] uclibc: add simlinks from libdl/libm/libpthread/librt
@ 2020-06-13 16:20 Paul Cercueil
  2020-06-14 15:00 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Cercueil @ 2020-06-13 16:20 UTC (permalink / raw)
  To: buildroot

All the symbols that were previously present in libdl.so.0, libm.so.0,
libpthread.so.0 and librt.so.0 are now all packed within uClibc.

In order to keep binary compatibility with old executables, which were
dynamically linked with one of the libraries above, add symbolic links
to the uClibc shared library.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 package/uclibc/uclibc.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk
index 3ba4589672..73664d5b0b 100644
--- a/package/uclibc/uclibc.mk
+++ b/package/uclibc/uclibc.mk
@@ -424,6 +424,10 @@ define UCLIBC_INSTALL_TARGET_CMDS
 		RUNTIME_PREFIX=/ \
 		install_runtime
 	$(UCLIBC_INSTALL_UTILS_TARGET)
+	ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/libdl.so.0
+	ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/libm.so.0
+	ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/libpthread.so.0
+	ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/librt.so.0
 endef
 
 # STATIC has no ld* tools, only getconf
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-21  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-13 16:20 [Buildroot] [PATCH] uclibc: add simlinks from libdl/libm/libpthread/librt Paul Cercueil
2020-06-14 15:00 ` Yann E. MORIN
2020-06-14 17:51   ` Paul Cercueil
2020-06-21  8:51     ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox