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

11
steps/improve/musl_target.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
sed -i "/^LIBDIR/d" /steps/env
TARGET=i386-unknown-linux-musl
LIBDIR=${PREFIX}/lib/${TARGET}
echo "LIBDIR=${LIBDIR}" >> /steps/env
echo "TARGET=${TARGET}" >> /steps/env