summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch')
-rw-r--r--meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch18
1 files changed, 12 insertions, 6 deletions
diff --git a/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch b/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch
index ba00efe7b3..8b097f3276 100644
--- a/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch
+++ b/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch
@@ -1,7 +1,7 @@
1From 0ec74744a4cba7c5fdfaa2685995119a4fca0260 Mon Sep 17 00:00:00 2001 1From f95b6fd0475a95c00e886219271cb5c93838e3c3 Mon Sep 17 00:00:00 2001
2From: Amarnath Valluri <amarnath.valluri@intel.com> 2From: Amarnath Valluri <amarnath.valluri@intel.com>
3Date: Wed, 18 Jan 2017 16:14:37 +0200 3Date: Wed, 18 Jan 2017 16:14:37 +0200
4Subject: [PATCH] Make dynamic linker a relative symlink to libc 4Subject: [PATCH 1/2] Make dynamic linker a relative symlink to libc
5 5
6absolute symlink into $(libdir) fails to load in a cross build 6absolute symlink into $(libdir) fails to load in a cross build
7environment, especially when executing qemu in usermode to run target 7environment, especially when executing qemu in usermode to run target
@@ -13,18 +13,19 @@ V2:
13 Make use of 'ln -r' to create relative symlinks, as most fo the distros 13 Make use of 'ln -r' to create relative symlinks, as most fo the distros
14 shipping coreutils 8.16+ 14 shipping coreutils 8.16+
15 15
16Upstream-Status: Pending
16Signed-off-by: Khem Raj <raj.khem@gmail.com> 17Signed-off-by: Khem Raj <raj.khem@gmail.com>
17Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> 18Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
18--- 19---
19Upstream-Status: Pending
20---
21 Makefile | 2 +- 20 Makefile | 2 +-
22 tools/install.sh | 8 +++++--- 21 tools/install.sh | 8 +++++---
23 2 files changed, 6 insertions(+), 4 deletions(-) 22 2 files changed, 6 insertions(+), 4 deletions(-)
24 23
24diff --git a/Makefile b/Makefile
25index e8cc4436..466d9afd 100644
25--- a/Makefile 26--- a/Makefile
26+++ b/Makefile 27+++ b/Makefile
27@@ -210,7 +210,7 @@ $(DESTDIR)$(includedir)/%: $(srcdir)/inc 28@@ -210,7 +210,7 @@ $(DESTDIR)$(includedir)/%: $(srcdir)/include/%
28 $(INSTALL) -D -m 644 $< $@ 29 $(INSTALL) -D -m 644 $< $@
29 30
30 $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so 31 $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so
@@ -33,6 +34,8 @@ Upstream-Status: Pending
33 34
34 install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),) 35 install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),)
35 36
37diff --git a/tools/install.sh b/tools/install.sh
38index d913b60b..b6a7f797 100755
36--- a/tools/install.sh 39--- a/tools/install.sh
37+++ b/tools/install.sh 40+++ b/tools/install.sh
38@@ -6,18 +6,20 @@ 41@@ -6,18 +6,20 @@
@@ -58,7 +61,7 @@ Upstream-Status: Pending
58 m) mode=$OPTARG ;; 61 m) mode=$OPTARG ;;
59 ?) usage ;; 62 ?) usage ;;
60 esac 63 esac
61@@ -48,7 +50,7 @@ trap 'rm -f "$tmp"' EXIT INT QUIT TERM H 64@@ -48,7 +50,7 @@ trap 'rm -f "$tmp"' EXIT INT QUIT TERM HUP
62 umask 077 65 umask 077
63 66
64 if test "$symlink" ; then 67 if test "$symlink" ; then
@@ -67,3 +70,6 @@ Upstream-Status: Pending
67 else 70 else
68 cat < "$1" > "$tmp" 71 cat < "$1" > "$tmp"
69 chmod "$mode" "$tmp" 72 chmod "$mode" "$tmp"
73--
742.37.2
75