Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 94c0b97b62125d8bbc92dce0694e387d5b2ad181 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 10 Jan 2016 12:14:02 -0800 |
| 4 | Subject: [PATCH] Make dynamic linker a relative symlink to libc |
| 5 | |
| 6 | absolute symlink into $(libdir) fails to load in a cross build |
| 7 | environment, especially when executing qemu in usermode to run target |
| 8 | applications, which cross build systems often do, since not everything |
| 9 | can be computed during cross builds, qemu in usermode often comes to aid |
| 10 | in such situations to feed into cross builds. |
| 11 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | Upstream-Status: Pending |
| 15 | |
| 16 | Makefile | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/Makefile b/Makefile |
| 20 | index b2226fa..0d71f7f 100644 |
| 21 | --- a/Makefile |
| 22 | +++ b/Makefile |
| 23 | @@ -189,7 +189,7 @@ $(DESTDIR)$(includedir)/%: include/% |
| 24 | $(INSTALL) -D -m 644 $< $@ |
| 25 | |
| 26 | $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so |
| 27 | - $(INSTALL) -D -l $(libdir)/libc.so $@ || true |
| 28 | + $(INSTALL) -D -l ..$(libdir)/libc.so $@ || true |
| 29 | |
| 30 | install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),) |
| 31 | |
| 32 | -- |
| 33 | 2.7.0 |
| 34 | |