diff options
author | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-07 08:47:33 +0000 |
---|---|---|
committer | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-07 08:47:33 +0000 |
commit | 1b455a16b4790d817af626c0772198b471494800 (patch) | |
tree | 92e5ddc5cb4a65444b20847c1575b064dce6194b /gcc/config.gcc | |
parent | 89ac5e5b6484fbebffda8c762212972a90361fad (diff) | |
download | gcc-1b455a16b4790d817af626c0772198b471494800.tar.gz |
Cleanup libc selection and Android support.
* config.gcc (*linux*): Split libc selection from Android support.
Add libc selection to all *linux* targets. Add Android support to
architectures that support it.
(arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
(mips*-*-linux*): Add Android support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205781 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 61d611a6b3e..93743d8c865 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -676,11 +676,15 @@ case ${target} in native_system_header_dir=/include ;; esac - # glibc / uclibc / bionic switch. + # Linux C libraries selection switch: glibc / uclibc / bionic. # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. case $target in *linux*) - extra_options="$extra_options linux.opt";; + tm_p_file="${tm_p_file} linux-protos.h" + tmake_file="${tmake_file} t-linux" + extra_objs="${extra_objs} linux.o" + extra_options="${extra_options} linux.opt" + ;; esac case $target in *-*-*android*) @@ -698,16 +702,6 @@ case ${target} in default_use_cxa_atexit=yes use_gcc_tgmath=no use_gcc_stdint=wrap - # Add Android userspace support to Linux targets. - case $target in - *linux*) - tm_p_file="${tm_p_file} linux-protos.h" - tmake_file="${tmake_file} t-linux" - extra_objs="$extra_objs linux.o" - tm_file="$tm_file linux-android.h" - extra_options="$extra_options linux-android.opt" - ;; - esac # Enable compilation for Android by default for *android* targets. case $target in *-*-*android*) @@ -993,6 +987,7 @@ arm*-*-netbsdelf*) ;; arm*-*-linux-*) # ARM GNU/Linux with ELF tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" + extra_options="${extra_options} linux-android.opt" case $target in arm*b-*-linux*) tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" @@ -1000,7 +995,6 @@ arm*-*-linux-*) # ARM GNU/Linux with ELF esac tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi" tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h arm/aout.h arm/arm.h" - extra_objs="$extra_objs linux.o" # Define multilib configuration for arm-linux-androideabi. case ${target} in *-androideabi) @@ -1373,7 +1367,8 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h" case ${target} in i[34567]86-*-linux*) - tm_file="${tm_file} linux.h" + tm_file="${tm_file} linux.h linux-android.h" + extra_options="${extra_options} linux-android.opt" # Assume modern glibc default_gnu_indirect_function=yes if test x$enable_targets = xall; then @@ -1434,7 +1429,8 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h" case ${target} in x86_64-*-linux*) - tm_file="${tm_file} linux.h i386/linux-common.h i386/linux64.h" + tm_file="${tm_file} linux.h linux-android.h i386/linux-common.h i386/linux64.h" + extra_options="${extra_options} linux-android.opt" # Assume modern glibc default_gnu_indirect_function=yes ;; @@ -1949,7 +1945,8 @@ mips64*-*-linux* | mipsisa64*-*-linux*) gas=yes ;; mips*-*-linux*) # Linux MIPS, either endian. - tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h" + tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h" + extra_options="${extra_options} linux-android.opt" if test x$enable_targets = xall; then tm_file="${tm_file} mips/gnu-user64.h mips/linux64.h" tmake_file="${tmake_file} mips/t-linux64" |