diff mbox series

[48/52] iconv: Use LFS and 64 bit time_t for installed programs

Message ID 20210305201518.798584-49-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 iconv and iconvconfig.
---
 iconv/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/iconv/Makefile b/iconv/Makefile
index 659857dd8c..b7494efd0c 100644
--- a/iconv/Makefile
+++ b/iconv/Makefile
@@ -94,6 +94,14 @@  $(inst_bindir)/iconv: $(objpfx)iconv_prog $(+force)
 
 $(objpfx)iconv_prog: $(iconv_prog-modules:%=$(objpfx)%.o)
 $(objpfx)iconvconfig: $(iconvconfig-modules:%=$(objpfx)%.o)
+include $(o-iterator)
+define o-iterator-doit
+$(foreach f,$(others:%s=$(objpfx)%.o) $(iconv_prog-modules) \
+	    $(iconvconfig-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)test-iconvconfig.out: /dev/null $(objpfx)iconvconfig
 	(set -e; \