openwrt/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
glibc toolchain: fix eglibc build when TOOLCHAINOPTS is not set 2015-03-26 10:59:04 +00:00
insight
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
Config.in toolchain: switch to musl by default, except for mips64 2015-06-15 23:05:08 +00:00
info.mk
Makefile toolchain: remove leftovers from old llvm-gcc experiments 2015-03-15 12:03:01 +00:00