Commit 6508fa9c by Christophe Lyon Committed by Christophe Lyon

[ARM/FDPIC v6 24/24] [ARM] FDPIC: Handle arm*-*-uclinuxfdpiceabi in libstdc++ configure scripts

2019-09-10  Christophe Lyon  <christophe.lyon@st.com>

        libstdc++-v3/
    	* acinclude.m4: Handle uclinux*.
    	* configure: Regenerate.
    	* configure.host: Handle uclinux*

From-SVN: r275586
parent b08bcba5
2019-09-10 Christophe Lyon <christophe.lyon@st.com> 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
* acinclude.m4: Handle uclinux*.
* configure: Regenerate.
* configure.host: Handle uclinux*
2019-09-10 Christophe Lyon <christophe.lyon@st.com>
Mickaël Guêné <mickael.guene@st.com> Mickaël Guêné <mickael.guene@st.com>
* libsupc++/eh_personality.cc (get_ttype_entry): Add FDPIC * libsupc++/eh_personality.cc (get_ttype_entry): Add FDPIC
......
...@@ -1441,6 +1441,9 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [ ...@@ -1441,6 +1441,9 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [
ac_has_nanosleep=yes ac_has_nanosleep=yes
ac_has_sched_yield=yes ac_has_sched_yield=yes
;; ;;
uclinux*)
ac_has_nanosleep=yes
ac_has_sched_yield=yes
esac esac
elif test x"$enable_libstdcxx_time" != x"no"; then elif test x"$enable_libstdcxx_time" != x"no"; then
...@@ -1526,7 +1529,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [ ...@@ -1526,7 +1529,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [
if test x"$ac_has_clock_monotonic" != x"yes"; then if test x"$ac_has_clock_monotonic" != x"yes"; then
case ${target_os} in case ${target_os} in
linux*) linux* | uclinux*)
AC_MSG_CHECKING([for clock_gettime syscall]) AC_MSG_CHECKING([for clock_gettime syscall])
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <unistd.h> [#include <unistd.h>
...@@ -4424,7 +4427,7 @@ AC_DEFUN([GLIBCXX_ENABLE_FILESYSTEM_TS], [ ...@@ -4424,7 +4427,7 @@ AC_DEFUN([GLIBCXX_ENABLE_FILESYSTEM_TS], [
freebsd*|netbsd*|openbsd*|dragonfly*|darwin*) freebsd*|netbsd*|openbsd*|dragonfly*|darwin*)
enable_libstdcxx_filesystem_ts=yes enable_libstdcxx_filesystem_ts=yes
;; ;;
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu | uclinux*)
enable_libstdcxx_filesystem_ts=yes enable_libstdcxx_filesystem_ts=yes
;; ;;
rtems*) rtems*)
...@@ -4606,7 +4609,7 @@ dnl ...@@ -4606,7 +4609,7 @@ dnl
AC_MSG_CHECKING([for sendfile that can copy files]) AC_MSG_CHECKING([for sendfile that can copy files])
AC_CACHE_VAL(glibcxx_cv_sendfile, [dnl AC_CACHE_VAL(glibcxx_cv_sendfile, [dnl
case "${target_os}" in case "${target_os}" in
gnu* | linux* | solaris*) gnu* | linux* | solaris* | uclinux*)
GCC_TRY_COMPILE_OR_LINK( GCC_TRY_COMPILE_OR_LINK(
[#include <sys/sendfile.h>], [#include <sys/sendfile.h>],
[sendfile(1, 2, (off_t*)0, sizeof 1);], [sendfile(1, 2, (off_t*)0, sizeof 1);],
......
...@@ -6652,7 +6652,7 @@ irix5* | irix6* | nonstopux*) ...@@ -6652,7 +6652,7 @@ irix5* | irix6* | nonstopux*)
;; ;;
# This must be Linux ELF. # This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu) linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
...@@ -9598,7 +9598,7 @@ _LT_EOF ...@@ -9598,7 +9598,7 @@ _LT_EOF
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
;; ;;
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
tmp_diet=no tmp_diet=no
if test "$host_os" = linux-dietlibc; then if test "$host_os" = linux-dietlibc; then
case $cc_basename in case $cc_basename in
...@@ -11138,7 +11138,12 @@ linux*oldld* | linux*aout* | linux*coff*) ...@@ -11138,7 +11138,12 @@ linux*oldld* | linux*aout* | linux*coff*)
;; ;;
# This must be Linux ELF. # This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
# uclinux* changes (here and below) have been submitted to the libtool
# project, but have not yet been accepted: they are GCC-local changes
# for the time being. (See
# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
version_type=linux version_type=linux
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
...@@ -14822,7 +14827,12 @@ linux*oldld* | linux*aout* | linux*coff*) ...@@ -14822,7 +14827,12 @@ linux*oldld* | linux*aout* | linux*coff*)
;; ;;
# This must be Linux ELF. # This must be Linux ELF.
linux* | k*bsd*-gnu | kopensolaris*-gnu)
# uclinux* changes (here and below) have been submitted to the libtool
# project, but have not yet been accepted: they are GCC-local changes
# for the time being. (See
# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
version_type=linux version_type=linux
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
...@@ -20899,6 +20909,9 @@ $as_echo "$glibcxx_glibc217" >&6; } ...@@ -20899,6 +20909,9 @@ $as_echo "$glibcxx_glibc217" >&6; }
ac_has_nanosleep=yes ac_has_nanosleep=yes
ac_has_sched_yield=yes ac_has_sched_yield=yes
;; ;;
uclinux*)
ac_has_nanosleep=yes
ac_has_sched_yield=yes
esac esac
elif test x"$enable_libstdcxx_time" != x"no"; then elif test x"$enable_libstdcxx_time" != x"no"; then
...@@ -21347,7 +21360,7 @@ $as_echo "$ac_has_nanosleep" >&6; } ...@@ -21347,7 +21360,7 @@ $as_echo "$ac_has_nanosleep" >&6; }
if test x"$ac_has_clock_monotonic" != x"yes"; then if test x"$ac_has_clock_monotonic" != x"yes"; then
case ${target_os} in case ${target_os} in
linux*) linux* | uclinux*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
$as_echo_n "checking for clock_gettime syscall... " >&6; } $as_echo_n "checking for clock_gettime syscall... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
...@@ -28316,7 +28329,7 @@ _ACEOF ...@@ -28316,7 +28329,7 @@ _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
chktls_save_LDFLAGS="$LDFLAGS" chktls_save_LDFLAGS="$LDFLAGS"
case $host in case $host in
*-*-linux*) *-*-linux* | -*-uclinuxfdpic*)
LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
;; ;;
esac esac
...@@ -47824,7 +47837,7 @@ _ACEOF ...@@ -47824,7 +47837,7 @@ _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
chktls_save_LDFLAGS="$LDFLAGS" chktls_save_LDFLAGS="$LDFLAGS"
case $host in case $host in
*-*-linux*) *-*-linux* | -*-uclinuxfdpic*)
LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
;; ;;
esac esac
...@@ -54011,7 +54024,7 @@ _ACEOF ...@@ -54011,7 +54024,7 @@ _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
chktls_save_LDFLAGS="$LDFLAGS" chktls_save_LDFLAGS="$LDFLAGS"
case $host in case $host in
*-*-linux*) *-*-linux* | -*-uclinuxfdpic*)
LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
;; ;;
esac esac
...@@ -72654,7 +72667,7 @@ fi ...@@ -72654,7 +72667,7 @@ fi
case "$target" in case "$target" in
*-linux*) *-linux* | *-uclinux*)
case "$enable_linux_futex" in case "$enable_linux_futex" in
default) default)
# If headers don't have gettid/futex syscalls definition, then # If headers don't have gettid/futex syscalls definition, then
...@@ -74326,7 +74339,7 @@ $as_echo_n "checking whether to build Filesystem TS support... " >&6; } ...@@ -74326,7 +74339,7 @@ $as_echo_n "checking whether to build Filesystem TS support... " >&6; }
freebsd*|netbsd*|openbsd*|dragonfly*|darwin*) freebsd*|netbsd*|openbsd*|dragonfly*|darwin*)
enable_libstdcxx_filesystem_ts=yes enable_libstdcxx_filesystem_ts=yes
;; ;;
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu | uclinux*)
enable_libstdcxx_filesystem_ts=yes enable_libstdcxx_filesystem_ts=yes
;; ;;
rtems*) rtems*)
...@@ -74878,7 +74891,7 @@ $as_echo_n "checking for sendfile that can copy files... " >&6; } ...@@ -74878,7 +74891,7 @@ $as_echo_n "checking for sendfile that can copy files... " >&6; }
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
case "${target_os}" in case "${target_os}" in
gnu* | linux* | solaris*) gnu* | linux* | solaris* | uclinux*)
if test x$gcc_no_link = xyes; then if test x$gcc_no_link = xyes; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
...@@ -264,7 +264,7 @@ case "${host_os}" in ...@@ -264,7 +264,7 @@ case "${host_os}" in
linux-musl*) linux-musl*)
os_include_dir="os/generic" os_include_dir="os/generic"
;; ;;
gnu* | linux* | kfreebsd*-gnu) gnu* | linux* | kfreebsd*-gnu | uclinux*)
if [ "$uclibc" = "yes" ]; then if [ "$uclibc" = "yes" ]; then
os_include_dir="os/uclibc" os_include_dir="os/uclibc"
elif [ "$bionic" = "yes" ]; then elif [ "$bionic" = "yes" ]; then
...@@ -321,7 +321,7 @@ esac ...@@ -321,7 +321,7 @@ esac
# Set any OS-dependent and CPU-dependent bits. # Set any OS-dependent and CPU-dependent bits.
# THIS TABLE IS SORTED. KEEP IT THAT WAY. # THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${host}" in case "${host}" in
*-*-linux*) *-*-linux* | *-*-uclinux*)
case "${host_cpu}" in case "${host_cpu}" in
i[567]86) i[567]86)
abi_baseline_pair=i486-linux-gnu abi_baseline_pair=i486-linux-gnu
...@@ -355,7 +355,7 @@ case "${host}" in ...@@ -355,7 +355,7 @@ case "${host}" in
fi fi
esac esac
case "${host}" in case "${host}" in
arm*-*-linux-*) arm*-*-linux-* | arm*-*-uclinuxfdpiceabi)
port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver" port_specific_symbol_files="\$(srcdir)/../config/os/gnu-linux/arm-eabi-extra.ver"
;; ;;
esac esac
......
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