Setup to remove pregenerated header files from musl 1.1

This commit is contained in:
fosslinux 2025-02-03 15:54:14 +11:00
parent c5175b46c5
commit 4d27a137e8
11 changed files with 91 additions and 41 deletions

View file

@ -5,6 +5,13 @@
src_prepare() {
default
# meslibc is insufficient to regenerate src/ctype or src/iconv
# disable everything using a generated header
patch -Np1 -i ../../files/disable_ctype_headers.patch
rm src/ctype/iswalpha.c src/ctype/iswalnum.c src/ctype/iswctype.c \
src/ctype/towctrans.c
rm include/iconv.h src/locale/iconv.c src/locale/iconv_close.c
# tcc does not support complex types
rm -rf src/complex