mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Absolute symlink breaks cross compilation
@ 2020-01-17 23:24 Андрей Аладьев
  2020-01-18  4:29 ` Khem Raj
  2020-01-18  5:14 ` Rich Felker
  0 siblings, 2 replies; 5+ messages in thread
From: Андрей Аладьев @ 2020-01-17 23:24 UTC (permalink / raw)
  To: musl


[-- Attachment #1.1: Type: text/plain, Size: 247 bytes --]

Hello. Gentoo users find that it is not possible to cross compile musl. See
here https://bugs.gentoo.org/645626 more details.

I am sending to you proposed patch that is related to upstream. Please keep
all installed symlinks relative. Thank you.

[-- Attachment #1.2: Type: text/html, Size: 340 bytes --]

[-- Attachment #2: relative_libc_symlink.musl.patch --]
[-- Type: text/x-patch, Size: 520 bytes --]

diff --git a/Makefile b/Makefile
index bd8f5c38..81bf33d5 100644
--- a/Makefile
+++ b/Makefile
@@ -209,7 +209,7 @@ $(DESTDIR)$(includedir)/%: $(srcdir)/include/%
 	$(INSTALL) -D -m 644 $< $@
 
 $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so
-	$(INSTALL) -D -l $(libdir)/libc.so $@ || true
+	$(INSTALL) -D -l $$(realpath --no-symlinks --relative-to=$$(dirname $@) $(DESTDIR)$(libdir)/libc.so) $@ || true
 
 install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),)
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-18 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-17 23:24 [musl] Absolute symlink breaks cross compilation Андрей Аладьев
2020-01-18  4:29 ` Khem Raj
2020-01-18  5:14 ` Rich Felker
2020-01-18 19:27   ` Khem Raj
2020-01-18 21:54     ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).