aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config.h.in
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-01-14 13:33:58 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-01-14 18:06:07 +0000
commit559993b85744ae09d33eedb1cb062392ac482f94 (patch)
treeb36edbfee96fa0491ced43dbe77327d39c88f7e4 /libstdc++-v3/config.h.in
parentff6c7617102df365918402c6ccc8e497c47dbe60 (diff)
downloadgcc-559993b85744ae09d33eedb1cb062392ac482f94.zip
gcc-559993b85744ae09d33eedb1cb062392ac482f94.tar.gz
gcc-559993b85744ae09d33eedb1cb062392ac482f94.tar.bz2
libstdc++: Embed a static copy of tzdata.zi
This adds a copy of the tzdata.zi file to the library, and allows configuring to use it instead of a copy read from disk at runtime. The content of the file is in the public domain, but will need to be updated to the latest upstream file before making GCC releases. libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the --with-libstdcxx-zoneinfo-dir configure option with --with-libstdcxx-zoneinfo with yes/no/static choices as well as a directory. * config.h.in: Regenerate. * configure: Regenerate. * doc/xml/manual/configure.xml: Document configure option. * doc/html/manual/configure.html: Regenerate. * src/c++20/Makefile.am: Generate tzdata.zi.h header. * src/c++20/Makefile.in: Regenerate. * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a null pointer if no directory is configured. (zoneinfo_dir): Replace with ... (zoneinfo_file): New function. (tzdata_stream): New istream class. (remote_version, reload_tzdb): Use tzdata_stream. * testsuite/lib/libstdc++.exp (check_effective_target_tzdb): Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of tzdata.zi file in default location. * src/c++20/tzdata.zi: New file.
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r--libstdc++-v3/config.h.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in
index 02119b9..75eddfd 100644
--- a/libstdc++-v3/config.h.in
+++ b/libstdc++-v3/config.h.in
@@ -854,6 +854,9 @@
/* Define if size_t is unsigned int. */
#undef _GLIBCXX_SIZE_T_IS_UINT
+/* Define if static tzdata should be compiled into the library. */
+#undef _GLIBCXX_STATIC_TZDATA
+
/* Define to the value of the EOF integer constant. */
#undef _GLIBCXX_STDIO_EOF
@@ -1037,7 +1040,7 @@
/* Defined if as can handle rdseed. */
#undef _GLIBCXX_X86_RDSEED
-/* Define if a non-default location should be used for tzdata files. */
+/* Define if a directory should be searched for tzdata files. */
#undef _GLIBCXX_ZONEINFO_DIR
/* Define to 1 if mutex_timedlock is available. */