From 2502ac6d49e242d16fd6ad9a54fb569ddef29237 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 8 Sep 2019 01:21:37 +0200 Subject: [PATCH] tools: Tell gnu build systems that ftello works This forces gl_cv_func_ftello_works=yes for all tools using gnulibs. Signed-off-by: Hauke Mehrtens --- tools/coreutils/Makefile | 3 +++ tools/findutils/Makefile | 3 +++ tools/m4/Makefile | 4 +++- tools/sed/Makefile | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/coreutils/Makefile b/tools/coreutils/Makefile index 76080b7960..5e194ff9f8 100644 --- a/tools/coreutils/Makefile +++ b/tools/coreutils/Makefile @@ -25,6 +25,9 @@ BUILD_BINS = $(patsubst %,src/%,$(BUILD_PROGRAMS)) HOST_CONFIGURE_ARGS += \ --enable-install-program=$(subst $(space),$(comma),$(strip $(BUILD_PROGRAMS))) +HOST_CONFIGURE_VARS += \ + gl_cv_func_ftello_works=yes \ + HOST_MAKE_FLAGS += \ PROGRAMS="$(BUILD_BINS)" \ LIBRARIES= MANS= SUBDIRS=. diff --git a/tools/findutils/Makefile b/tools/findutils/Makefile index c1c45eeaab..574c5fb32f 100644 --- a/tools/findutils/Makefile +++ b/tools/findutils/Makefile @@ -18,4 +18,7 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk +HOST_CONFIGURE_VARS += \ + gl_cv_func_ftello_works=yes + $(eval $(call HostBuild)) diff --git a/tools/m4/Makefile b/tools/m4/Makefile index a6d931b0fd..3d6efd2785 100644 --- a/tools/m4/Makefile +++ b/tools/m4/Makefile @@ -19,7 +19,9 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk -HOST_CONFIGURE_VARS += gl_cv_func_strstr_linear=no +HOST_CONFIGURE_VARS += \ + gl_cv_func_strstr_linear=no \ + gl_cv_func_ftello_works=yes \ define Host/Clean -$(MAKE) -C $(HOST_BUILD_DIR) uninstall diff --git a/tools/sed/Makefile b/tools/sed/Makefile index ddeb6c457f..0ab25fa92e 100644 --- a/tools/sed/Makefile +++ b/tools/sed/Makefile @@ -30,6 +30,7 @@ HOST_CONFIGURE_VARS += \ ac_cv_search_setfilecon=no \ ac_cv_header_selinux_context_h=no \ ac_cv_header_selinux_selinux_h=no \ + gl_cv_func_ftello_works=yes \ define Host/Compile +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" -- 2.30.2