glibc.sh: build dummy libc.so with correct extra flags

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2016-05-21 16:53:19 -07:00
parent c7da54edf4
commit dc8f2d1c04

View File

@ -475,7 +475,8 @@ do_libc_backend_once() {
# However, since we will never actually execute its code,
# it doesn't matter what it contains. So, treating '/dev/null'
# as a C source file, we produce a dummy 'libc.so' in one step
CT_DoExecLog ALL "${cross_cc}" -nostdlib \
CT_DoExecLog ALL "${cross_cc}" ${extra_flags} \
-nostdlib \
-nostartfiles \
-shared \
-x c /dev/null \