mirror of
https://git.busybox.net/uClibc
synced 2025-10-14 01:32:00 +08:00
librt: Use -nodefaultlibs instead of -nostdlib
nostdlib disables linking in startup files too which is not what we want here since it needs to resolve __dso_handle which comes from crtbeginS.o, otherwise librt has this undefined reference to a weak undefined __dso_handle that shows up as error (with gold linker) when shared libraries are being built which are linking in librt Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:

committed by
Bernhard Reutner-Fischer

parent
bf6f131313
commit
534f44d531
@@ -15,6 +15,9 @@ LIBS-librt.so := $(LIBS)
|
||||
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
|
||||
LIBS-librt.so += $(top_builddir)lib/libdl.so $(top_builddir)lib/libpthread.so
|
||||
endif
|
||||
START_FILE-librt.so := $(SHARED_START_FILES)
|
||||
END_FILE-librt.so := $(SHARED_END_FILES)
|
||||
|
||||
|
||||
librt_FULL_NAME := librt-$(VERSION).so
|
||||
|
||||
|
Reference in New Issue
Block a user