Files
axe-os/stage/toolchain/m4.bash
ag-tsotetsi 409517b49f re-edit
2026-03-22 21:30:15 +02:00

17 lines
345 B
Bash

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