]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
m4: Fix build with glibc >= 2.43
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 24 Jan 2026 14:38:22 +0000 (14:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Jan 2026 11:29:23 +0000 (11:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/m4

diff --git a/lfs/m4 b/lfs/m4
index a6d45cae868146d23494e315564ef06d27eb4ff9..74db5b64ac977453d644462934ad389e87e6936b 100644 (file)
--- a/lfs/m4
+++ b/lfs/m4
@@ -80,6 +80,9 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && sed -i 's/^\(_GL_EXTERN_C void \*\)memchr (/\1(memchr) (/' lib/string.in.h
+       cd $(DIR_APP) && sed -i 's/^\(_GL_EXTERN_C wchar_t \*\)wmemchr (/\1(wmemchr) (/' lib/wchar.in.h
+       cd $(DIR_APP) && sed -i 's/^\(_GL_EXTERN_C void \*\)bsearch (/\1(bsearch) (/' lib/stdlib.in.h
        cd $(DIR_APP) && ./configure --prefix=$(PREFIX)
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install