diff options
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/0001-atexit_old-Do-not-add-it-to-shared-libc.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-git/0001-atexit_old-Do-not-add-it-to-shared-libc.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-atexit_old-Do-not-add-it-to-shared-libc.patch b/meta/recipes-core/uclibc/uclibc-git/0001-atexit_old-Do-not-add-it-to-shared-libc.patch new file mode 100644 index 0000000000..b6dfce483e --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-git/0001-atexit_old-Do-not-add-it-to-shared-libc.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 74667582526b39a1906228574d73a6528f4587eb Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 23 Jun 2012 13:26:30 -0700 | ||
4 | Subject: [PATCH] atexit_old: Do not add it to shared libc | ||
5 | |||
6 | atexit should only be in either uclibc_nonshared.a | ||
7 | shared libc case or libc.a in static build case | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | --- | ||
13 | libc/stdlib/Makefile.in | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/libc/stdlib/Makefile.in b/libc/stdlib/Makefile.in | ||
17 | index 3166b8e..3d686d9 100644 | ||
18 | --- a/libc/stdlib/Makefile.in | ||
19 | +++ b/libc/stdlib/Makefile.in | ||
20 | @@ -60,7 +60,6 @@ CSRC-$(if $(findstring yyy,$(UCLIBC_HAS_FLOATS)$(UCLIBC_HAS_WCHAR)$(UCLIBC_HAS_X | ||
21 | |||
22 | # multi source _atexit.c | ||
23 | CSRC-y += __cxa_atexit.c __cxa_finalize.c __exit_handler.c exit.c on_exit.c | ||
24 | -CSRC-$(COMPAT_ATEXIT) += old_atexit.c | ||
25 | |||
26 | STDLIB_DIR := $(top_srcdir)libc/stdlib | ||
27 | STDLIB_OUT := $(top_builddir)libc/stdlib | ||
28 | @@ -70,11 +69,12 @@ STDLIB_OBJ := $(patsubst %.c,$(STDLIB_OUT)/%.o,$(CSRC-y)) | ||
29 | |||
30 | libc-y += $(STDLIB_OBJ) | ||
31 | libc-static-y += $(STDLIB_OUT)/atexit.o $(STDLIB_OUT)/system.o | ||
32 | +libc-static-$(COMPAT_ATEXIT) += $(STDLIB_OUT)/old_atexit.o | ||
33 | libc-shared-y += $(STDLIB_OUT)/system.oS | ||
34 | |||
35 | # this should always be the PIC version, because it could be used in shared libs | ||
36 | libc-nonshared-y += $(STDLIB_OUT)/atexit.os | ||
37 | - | ||
38 | +libc-nonshared-$(COMPAT_ATEXIT) += $(STDLIB_OUT)/old_atexit.os | ||
39 | libc-nomulti-y += $(STDLIB_OUT)/labs.o $(STDLIB_OUT)/atol.o $(STDLIB_OUT)/_stdlib_strto_l.o $(STDLIB_OUT)/_stdlib_strto_ll.o | ||
40 | libc-nomulti-$(UCLIBC_HAS_XLOCALE) += $(STDLIB_OUT)/_stdlib_strto_l_l.o $(STDLIB_OUT)/_stdlib_strto_ll_l.o | ||
41 | |||
42 | -- | ||
43 | 1.7.9.5 | ||
44 | |||