about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-27 21:38:11 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-27 21:38:11 -0400
commit207c45d7abdf7a4bd93973f195deb4d8e202c3e3 (patch)
tree87dbe7fe45e66c912d4e5c320318be7d1bbf2fc7 /tools
parent230f1813ad8264f09d5247fa0ed1e8e361c21e0e (diff)
downloadmusl-207c45d7abdf7a4bd93973f195deb4d8e202c3e3.tar.gz
musl-207c45d7abdf7a4bd93973f195deb4d8e202c3e3.tar.xz
musl-207c45d7abdf7a4bd93973f195deb4d8e202c3e3.zip
cleanup shared library build system to be more $HOME-local-install friendly
the path for the dynamic linker is now configurable, and failure to
install the symlink for it will not stop the build.
Diffstat (limited to 'tools')
-rw-r--r--tools/gen-musl-gcc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gen-musl-gcc.sh b/tools/gen-musl-gcc.sh
index 6a35c71f..42fdaec7 100644
--- a/tools/gen-musl-gcc.sh
+++ b/tools/gen-musl-gcc.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-printf '#!/bin/sh\n\nlibc_prefix="%s"\narch="%s"\n' "$1" "$2"
+printf '#!/bin/sh\n\nlibc_prefix="%s"\nldso_pathname="%s"\n' "$1" "$2"
 
 cat <<"EOF"
 libc_lib=$libc_prefix/lib
@@ -28,5 +28,5 @@ exec "$0" "$@"
 ' -std=gnu99 -nostdinc -nostdlib \
   -isystem "$libc_inc" -isystem "$gcc_inc" \
   -Wl,-xxxxxx "$@" -L"$libc_lib" -lc -L"$libgcc" -lgcc -Lxxxxxx \
-  -Wl,-dynamic-linker,/lib/ld-musl-"$arch".so.1 -Wl,-nostdlib
+  -Wl,-dynamic-linker,"$ldso_pathname" -Wl,-nostdlib
 EOF