diff mbox series

[49/52] locale: Use LFS and 64 bit time_t for installed programs

Message ID 20210305201518.798584-50-adhemerval.zanella@linaro.org
State New
Headers show
Series Add 64 bit time support on legacy ABIs | expand

Commit Message

Adhemerval Zanella March 5, 2021, 8:15 p.m. UTC
It is enabled for locale and localedef.
---
 locale/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/locale/Makefile b/locale/Makefile
index b7c60681fa..6d082ac13c 100644
--- a/locale/Makefile
+++ b/locale/Makefile
@@ -81,6 +81,15 @@  $(objpfx)localedef: $(localedef-aux:%=$(objpfx)%.o)
 $(objpfx)locale: $(locale-modules:%=$(objpfx)%.o)
 $(objpfx)localedef $(objpfx)locale: $(lib-modules:%=$(objpfx)%.o)
 
+include $(o-iterator)
+define o-iterator-doit
+$(foreach f,$(localedef-modules) $(localedef-aux) $(locale-modules) \
+	    $(lib-modules),$(objpfx)$(f)$(o)): CFLAGS += -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
+endef
+object-suffixes-left := $(all-object-suffixes)
+include $(o-iterator)
+
+
 $(objpfx)C-translit.h: C-translit.h.in gen-translit.py
 	$(make-target-directory)
 	$(PYTHON) gen-translit.py < $< > $@.tmp