This commit is contained in:
ag-tsotetsi
2026-03-22 21:30:15 +02:00
parent 1b605aaef1
commit 409517b49f
10 changed files with 733 additions and 179 deletions

17
stage/toolchain/m4.bash Normal file
View File

@@ -0,0 +1,17 @@
fetch $M4_URL
cd "$SOURCES" && tar xf m4-$M4_VERSION.tar.xz && cd m4-$M4_VERSION
sed -r '/_GL_EXTERN_C/s/w?memchr|bsearch/(&)/' -i $(find -name \*.in.h)
./configure \
--prefix=/usr \
--host=$TARGET \
--build=$(build-aux/config.guess) \
--silent \
--quiet
make && make DESTDIR="$SYSROOT" install
cd "$SOURCES" && rm -rf m4-$M4_VERSION