X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=tools%2Fgen-musl-gcc.sh;h=42fdaec70f9d8f016228ba6f69dcbdf8414c2902;hp=bf20c1f63ce1d19b68e67faec90f05a8cb0bbd7c;hb=207c45d7abdf7a4bd93973f195deb4d8e202c3e3;hpb=71df8b2760348c55b1c0d04aeebcae372d9760d3 diff --git a/tools/gen-musl-gcc.sh b/tools/gen-musl-gcc.sh index bf20c1f6..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"\n' "$1" +printf '#!/bin/sh\n\nlibc_prefix="%s"\nldso_pathname="%s"\n' "$1" "$2" cat <<"EOF" libc_lib=$libc_prefix/lib @@ -27,5 +27,6 @@ done exec "$0" "$@" ' -std=gnu99 -nostdinc -nostdlib \ -isystem "$libc_inc" -isystem "$gcc_inc" \ - -Wl,-xxxxxx "$@" -L"$libc_lib" -lc -L"$libgcc" -lgcc -Lxxxxxx -Wl,-nostdlib + -Wl,-xxxxxx "$@" -L"$libc_lib" -lc -L"$libgcc" -lgcc -Lxxxxxx \ + -Wl,-dynamic-linker,"$ldso_pathname" -Wl,-nostdlib EOF