projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean up pthread_sigmask/sigprocmask dependency order
[musl]
/
tools
/
gen-musl-gcc.sh
diff --git
a/tools/gen-musl-gcc.sh
b/tools/gen-musl-gcc.sh
index
bf20c1f
..
42fdaec
100644
(file)
--- a/
tools/gen-musl-gcc.sh
+++ b/
tools/gen-musl-gcc.sh
@@
-1,6
+1,6
@@
#!/bin/sh
#!/bin/sh
-printf '#!/bin/sh\n\nlibc_prefix="%s"\n
' "$1
"
+printf '#!/bin/sh\n\nlibc_prefix="%s"\n
ldso_pathname="%s"\n' "$1" "$2
"
cat <<"EOF"
libc_lib=$libc_prefix/lib
cat <<"EOF"
libc_lib=$libc_prefix/lib
@@
-27,5
+27,6
@@
done
exec "$0" "$@"
' -std=gnu99 -nostdinc -nostdlib \
-isystem "$libc_inc" -isystem "$gcc_inc" \
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
EOF