aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-01-17 11:47:11 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-01-17 14:15:13 +0000
commitd74d84c623ea8ae394b28c26e6a9a946ff126c31 (patch)
tree3e9b1ce1af1845aef6bd2c72fcef3d7af8a21781 /gcc
parent3a121c06f3cff8206883dea526bec4569876b059 (diff)
downloadgcc-d74d84c623ea8ae394b28c26e6a9a946ff126c31.zip
gcc-d74d84c623ea8ae394b28c26e6a9a946ff126c31.tar.gz
gcc-d74d84c623ea8ae394b28c26e6a9a946ff126c31.tar.bz2
libstdc++: Fix configuration of default zoneinfo dir on linux
The config for --with-libstdcxx-zoneinfo=yes was comparing the target triplet to "gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu" which is only the last component of the triplet, so failed to match and always used the zoneinfo_dir=none default. Check $target_os instead. There was also an error in the check for native builds that tzdata.zi is actually present in the configured directory. That meant a warning was printed even when the file was present: configure: zoneinfo data directory: /usr/share/zoneinfo configure: WARNING: "/usr/share/zoneinfo does not contain tzdata.zi file" configure: static tzdata.zi file will be compiled into the library libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead of $host. Fix check for file being present during native build. * configure: Regenerate.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions