projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
return the requested string as the "canonical name" for numeric addresses
[musl]
/
tools
/
gen-musl-gcc.sh
diff --git
a/tools/gen-musl-gcc.sh
b/tools/gen-musl-gcc.sh
index
89f7f4d
..
bf20c1f
100644
(file)
--- a/
tools/gen-musl-gcc.sh
+++ b/
tools/gen-musl-gcc.sh
@@
-11,6
+11,7
@@
libc_end="$libc_lib/crtn.o"
gcc_inc=$libc_inc
libgcc="`gcc \"$@\" -print-file-name=libgcc.a`"
gcc_inc=$libc_inc
libgcc="`gcc \"$@\" -print-file-name=libgcc.a`"
+libgcc=${libgcc%libgcc.a}
gcc -wrapper sh,-c,'
x= ; y= ; z= ; s= ; for i ; do
gcc -wrapper sh,-c,'
x= ; y= ; z= ; s= ; for i ; do
@@
-26,5
+27,5
@@
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
"$libgcc"
-Lxxxxxx -Wl,-nostdlib
+ -Wl,-xxxxxx "$@" -L"$libc_lib" -lc
-L"$libgcc" -lgcc
-Lxxxxxx -Wl,-nostdlib
EOF
EOF