]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
coreutils: Fix build against glibc >= 2.43
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 24 Jan 2026 14:28:13 +0000 (14:28 +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/coreutils

index 3ab75ac57ffb8c4fdde9149cb64ed5332a735048..6bedd56c0dc01ab410ca5224a24b1df30699e0f1 100644 (file)
@@ -48,8 +48,6 @@ CONFIGURE_OPTIONS += \
        --with-tty-group \
        gl_cv_func_mknod_works=yes
 
-CFLAGS += -fno-strict-aliasing
-
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -88,6 +86,8 @@ $(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 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 $(CONFIGURE_OPTIONS)
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install