libstdc++: Disable embedded tzdata for all 16-bit targets
libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and msp430 to all 16-bit targets. * configure: Regenerate. (cherry picked from commit 51cf0b3949b88b5e622872e4dac019ceb27400e1)
This commit is contained in:
parent
2d40cd2f19
commit
fa78e9a672
@ -5201,12 +5201,15 @@ AC_DEFUN([GLIBCXX_ZONEINFO_DIR], [
|
||||
zoneinfo_dir=none
|
||||
;;
|
||||
esac
|
||||
case "$host" in
|
||||
avr-*-* | msp430-*-* ) embed_zoneinfo=no ;;
|
||||
*)
|
||||
# Also embed a copy of the tzdata.zi file as a static string.
|
||||
embed_zoneinfo=yes ;;
|
||||
esac
|
||||
|
||||
AC_COMPUTE_INT(glibcxx_cv_at_least_32bit, [sizeof(void*) >= 4])
|
||||
if test "$glibcxx_cv_at_least_32bit" -ne 0; then
|
||||
# Also embed a copy of the tzdata.zi file as a static string.
|
||||
embed_zoneinfo=yes
|
||||
else
|
||||
# The embedded data is too large for 16-bit targets.
|
||||
embed_zoneinfo=no
|
||||
fi
|
||||
elif test "x${with_libstdcxx_zoneinfo}" = xno; then
|
||||
# Disable tzdb support completely.
|
||||
zoneinfo_dir=none
|
||||
|
18
libstdc++-v3/configure
vendored
18
libstdc++-v3/configure
vendored
@ -71557,12 +71557,18 @@ fi
|
||||
zoneinfo_dir=none
|
||||
;;
|
||||
esac
|
||||
case "$host" in
|
||||
avr-*-* | msp430-*-* ) embed_zoneinfo=no ;;
|
||||
*)
|
||||
# Also embed a copy of the tzdata.zi file as a static string.
|
||||
embed_zoneinfo=yes ;;
|
||||
esac
|
||||
|
||||
if ac_fn_c_compute_int "$LINENO" "sizeof(void*) >= 4" "glibcxx_cv_at_least_32bit" ""; then :
|
||||
|
||||
fi
|
||||
|
||||
if test "$glibcxx_cv_at_least_32bit" -ne 0; then
|
||||
# Also embed a copy of the tzdata.zi file as a static string.
|
||||
embed_zoneinfo=yes
|
||||
else
|
||||
# The embedded data is too large for 16-bit targets.
|
||||
embed_zoneinfo=no
|
||||
fi
|
||||
elif test "x${with_libstdcxx_zoneinfo}" = xno; then
|
||||
# Disable tzdb support completely.
|
||||
zoneinfo_dir=none
|
||||
|
Loading…
x
Reference in New Issue
Block a user