Commit 2a484d14 by Chung-Ju Wu Committed by Chung-Ju Wu

[NDS32] Set default --with-nds32-lib correctly.

gcc/
	* config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.

From-SVN: r268744
parent 79e2c811
2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
* config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2019-02-10 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/89268
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment