diff options
author | Alexey Neyman <stilor@att.net> | 2017-01-13 21:24:16 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-01-13 21:47:07 -0800 |
commit | c1612e92956d8f289c3779ff1366af873afbb7c3 (patch) | |
tree | 4eede13bbbffbb06dc3a1259eba3f4b4b96d16c7 /scripts/build/libc/glibc.sh | |
parent | d34a6bd8a0222fadfc86795f65ca9a7df232324d (diff) | |
download | crosstool-ng-c1612e92956d8f289c3779ff1366af873afbb7c3.tar.gz crosstool-ng-c1612e92956d8f289c3779ff1366af873afbb7c3.tar.bz2 crosstool-ng-c1612e92956d8f289c3779ff1366af873afbb7c3.zip |
Use ${CT_CC} instead of gcc ...
... when refering to target's compiler.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/libc/glibc.sh')
-rw-r--r-- | scripts/build/libc/glibc.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 3e2c88ed..bce4cb89 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -252,7 +252,7 @@ do_libc_backend_once() { # but they are not passed by configure. Thus, pass everything in CC instead. CT_DoExecLog CFG \ BUILD_CC=${CT_BUILD}-gcc \ - CC="${CT_TARGET}-gcc ${glibc_cflags}" \ + CC="${CT_TARGET}-${CT_CC} ${glibc_cflags}" \ AR=${CT_TARGET}-ar \ RANLIB=${CT_TARGET}-ranlib \ "${CONFIG_SHELL}" \ @@ -362,11 +362,11 @@ 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 "${CT_TARGET}-gcc" ${multi_flags} \ - -nostdlib \ - -nostartfiles \ - -shared \ - -x c /dev/null \ + CT_DoExecLog ALL "${CT_TARGET}-${CT_CC}" ${multi_flags} \ + -nostdlib \ + -nostartfiles \ + -shared \ + -x c /dev/null \ -o "${startfiles_dir}/libc.so" fi # threads == nptl fi # libc_mode = startfiles |