diff options
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/0001-librt-Use-nodefaultlibs-instead-of-nostdlib.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/0001-librt-Use-nodefaultlibs-instead-of-nostdlib.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-librt-Use-nodefaultlibs-instead-of-nostdlib.patch b/meta/recipes-core/uclibc/uclibc-git/0001-librt-Use-nodefaultlibs-instead-of-nostdlib.patch new file mode 100644 index 0000000000..ecb9d31645 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/0001-librt-Use-nodefaultlibs-instead-of-nostdlib.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 95f9b6f37152b8316735d3c86c0db963ff59e22d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 23 Jun 2012 16:51:52 -0700 | ||
4 | Subject: [PATCH] librt: Use -nodefaultlibs instead of -nostdlib | ||
5 | |||
6 | nostdlib disables linking in startup files too which is not | ||
7 | what we want here since it needs to resolve __dso_handle | ||
8 | which comes from crtbeginS.o, otherwise librt has this | ||
9 | undefined reference to a weak undefined __dso_handle that | ||
10 | shows up as error (with gold linker) | ||
11 | when shared libraries are being built which are | ||
12 | linking in librt | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | Upstream-Status: Pending | ||
16 | --- | ||
17 | librt/Makefile.in | 1 + | ||
18 | 1 file changed, 1 insertion(+) | ||
19 | |||
20 | Index: git/librt/Makefile.in | ||
21 | =================================================================== | ||
22 | --- git.orig/librt/Makefile.in 2012-06-24 10:32:59.512653237 -0700 | ||
23 | +++ git/librt/Makefile.in 2012-06-24 11:31:00.660821666 -0700 | ||
24 | @@ -15,6 +15,9 @@ | ||
25 | ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) | ||
26 | LIBS-librt.so += $(top_builddir)lib/libdl.so $(top_builddir)lib/libpthread.so | ||
27 | endif | ||
28 | +START_FILE-librt.so := $(SHARED_START_FILES) | ||
29 | +END_FILE-librt.so := $(SHARED_END_FILES) | ||
30 | + | ||
31 | |||
32 | librt_FULL_NAME := librt-$(VERSION).so | ||
33 | |||