X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=tools%2Fgen-musl-gcc.sh;h=42fdaec70f9d8f016228ba6f69dcbdf8414c2902;hp=fcd1e4eac8385a88a4f249c361eb57bf45444a8a;hb=b3c08a16c0a085e8de01cdc9de106aaa332d27d5;hpb=ec05a0b08f0d93341c149a6f3235e4ee5711b2f8 diff --git a/tools/gen-musl-gcc.sh b/tools/gen-musl-gcc.sh index fcd1e4ea..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