openwrtv4/toolchain
Felix Fietkau 7b4d039e00 musl: read the timezone from /etc/TZ
Currently the OpenWRT boot scripts write the timezone configuration to
/tmp/TZ, relying on the behaviour of uClibc that the timezone is read
from /etc/TZ if no TZ env variable is found.

This works because /etc/TZ is a symlink to /tmp/TZ.

Musl libc however only reads the timezone from the TZ env variable and
if it doesn't find it or it's empty, it will look for a zoneinfo
file, that doesn't exist.

So in musl builds no timezone is ever set.

This patch fixes the issue by having musl libc behave like uClibc: if no
TZ env variable is found it will try to load it from /etc/TZ.

Signed-off-by: Gianluca Anzolin <gianluca at sottospazio.it>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46069
2015-06-19 17:48:11 +00:00
..
binutils toolchain: change default emulation for mips64 (octeon) to n64 2015-05-10 13:54:20 +00:00
gcc hardening: enable regular SSP support by default 2015-06-17 13:13:48 +00:00
gdb build: remove check to nonexistant CONFIG_ENABLE_LOCALE variable and move DISABLE_NLS to package-defaults.mk 2014-03-21 15:54:07 +00:00
glibc toolchain: fix eglibc build when TOOLCHAINOPTS is not set 2015-03-26 10:59:04 +00:00
insight build: remove check to nonexistant CONFIG_ENABLE_LOCALE variable and move DISABLE_NLS to package-defaults.mk 2014-03-21 15:54:07 +00:00
kernel-headers toolchain: remove obsolete references to the cris architecture 2015-03-24 10:07:31 +00:00
musl musl: read the timezone from /etc/TZ 2015-06-19 17:48:11 +00:00
uClibc uclibc: unbreak after enabling SSP 2015-06-18 09:49:45 +00:00
wrapper buildroot: allow specifying libc personality for external toolchains 2013-02-20 15:06:10 +00:00
Config.in toolchain: switch to musl by default, except for mips64 2015-06-15 23:05:08 +00:00
info.mk uClibc cleanup: - use full version string (0.9.30.1), instead of base (0.9.30) + extra (.1) - remove support for 0.9.28 and snapshots (building from SVN to be added later) 2009-04-24 02:07:24 +00:00
Makefile toolchain: remove leftovers from old llvm-gcc experiments 2015-03-15 12:03:01 +00:00