genode/libports/lib/mk/libc-stdtime.mk
Christian Prochaska ed58040794 Define 'TZ_MAX_TIMES' as 1
This patch defines 'TZ_MAX_TIMES' as 1 when building 'localtime.c' to avoid
a big stack allocation in the 'tzload()' function.

Fixes #250.
2012-07-02 14:18:58 +02:00

10 lines
238 B
Makefile

LIBC_STDTIME_DIR = $(LIBC_DIR)/libc/stdtime
SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(LIBC_STDTIME_DIR)/*.c)))
CC_OPT_localtime = -DTZ_MAX_TIMES=1
include $(REP_DIR)/lib/mk/libc-common.inc
vpath %.c $(LIBC_STDTIME_DIR)