diff options
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 7675d92..31b47c5 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4523,9 +4523,18 @@ case "${target}" in # process --with-nds32-lib case "${with_nds32_lib}" in "") - # the default library is newlib - with_nds32_lib=newlib - tm_defines="${tm_defines} TARGET_DEFAULT_CTOR_DTOR=1" + case ${target} in + *-*-*uclibc*) + with_nds32_lib=ulibc + ;; + *-*-linux*) + with_nds32_lib=glibc + ;; + *) + with_nds32_lib=newlib + tm_defines="${tm_defines} TARGET_DEFAULT_CTOR_DTOR=1" + ;; + esac ;; newlib) # OK @@ -4541,11 +4550,8 @@ case "${target}" in ;; esac ;; - glibc) + glibc | uclibc) # OK - tm_defines="${tm_defines}" - ;; - uclibc) ;; *) echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib glibc uclibc" 1>&2 |