Define "TARGET" variable to avoid hardcoding "i386-unknown-linux-musl" everywhere

This commit is contained in:
Eduardo Sánchez Muñoz 2025-07-18 14:28:30 +02:00
parent a7397d5caa
commit 502e8f944c
37 changed files with 81 additions and 79 deletions

View file

@ -21,7 +21,7 @@ src_configure() {
# Musl is not recognized, pretend to be uClibc
# Must use --host for config.charset reproducibility
CC=tcc ./configure --prefix="${PREFIX}" \
--host=i386-unknown-linux-gnu \
--host="${TARGET/-musl/-gnu}" \
CPPFLAGS="-D__UCLIBC__"
}