mailing list of musl libc
 help / color / mirror / code / Atom feed
* relative link between libc.so and the dynamic linker
@ 2016-08-03 20:52 Sidney Manning
  2016-08-03 21:14 ` Kylie McClain
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sidney Manning @ 2016-08-03 20:52 UTC (permalink / raw)
  To: musl

I'd like to suggest making the symbolic link between libc.so and
ld-musl-<target>.so.1 relative rather than absolute.  A relative path makes
movement between systems easier, in particular when one is copying cross
binaries to into a runtime environment.

diff --git a/tools/install.sh b/tools/install.sh
index d913b60..1c102f5 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -48,7 +48,7 @@ trap 'rm -f "$tmp"' EXIT INT QUIT TERM HUP
 umask 077
 
 if test "$symlink" ; then
-ln -s "$1" "$tmp"
+ln -s -r "$1" "$tmp"
 else
 cat < "$1" > "$tmp"
 chmod "$mode" "$tmp"



The final result would look something like this:
ld-musl-x86_64.so.1 -> ../usr/lib/libc.so

Rather than:
ld-musl-x86_64.so.1 -> /tmp/musl/install/usr/lib/libc.so

Thanks,


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation





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

end of thread, other threads:[~2016-08-04 18:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03 20:52 relative link between libc.so and the dynamic linker Sidney Manning
2016-08-03 21:14 ` Kylie McClain
2016-08-04  2:19 ` Rich Felker
2016-08-04 18:09   ` Sidney Manning
2016-08-04  7:49 ` Khem Raj
2016-08-04 16:47   ` 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).