summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/tinylogin/tinylogin-1.4
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-06-20 13:08:18 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-23 12:07:31 +0100
commit745fffc5c2e79729bc2a574b7011ea712ed23033 (patch)
treefbf1d0e2c870e899889e76d6f937d3d75535311d /meta/recipes-core/tinylogin/tinylogin-1.4
parenta82642faaa30303635854bdab3acb4a86a3ac92f (diff)
downloadpoky-745fffc5c2e79729bc2a574b7011ea712ed23033.tar.gz
tinylogin: Avoid stripped binaries
(From OE-Core rev: 6a4e0a4e1f84d124e01a81b5a8563df080c7c999) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/tinylogin/tinylogin-1.4')
-rw-r--r--meta/recipes-core/tinylogin/tinylogin-1.4/avoid_static.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/tinylogin/tinylogin-1.4/avoid_static.patch b/meta/recipes-core/tinylogin/tinylogin-1.4/avoid_static.patch
new file mode 100644
index 0000000000..8a06af0ddf
--- /dev/null
+++ b/meta/recipes-core/tinylogin/tinylogin-1.4/avoid_static.patch
@@ -0,0 +1,33 @@
1tinylogin: Do not link statically when building debug
2
3For some reason if DODEBUG was enabled (to prevent stripping) the binary was
4also statically linked. This patch prevents that behavior.
5
6Upstream-Status: Inappropriate [no upstream]
7
8Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
9
10diff -ur tinylogin-1.4.orig/Makefile tinylogin-1.4/Makefile
11--- tinylogin-1.4.orig/Makefile 2011-06-18 11:00:23.073927349 -0500
12+++ tinylogin-1.4/Makefile 2011-06-18 11:03:26.394849372 -0500
13@@ -123,20 +123,6 @@
14 LDFLAGS += -s -Wl,-warn-common
15 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
16 endif
17-ifeq ($(strip $(DODEBUG)),true)
18- LDFLAGS += --static
19- #
20- #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they
21- # work) to try and strip out any unused junk. Doesn't do much for me,
22- # but you may want to give it a shot...
23- #
24- #ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
25- # -o /dev/null -xc /dev/null 2>/dev/null && $(LD) \
26- # --gc-sections -v >/dev/null && echo 1),1)
27- # CFLAGS += -ffunction-sections -fdata-sections
28- # LDFLAGS += --gc-sections
29- #endif
30-endif
31 ifeq ($(strip $(DOSTATIC)),true)
32 LDFLAGS += --static
33 #