Store dependencies configure args in bash arrays

This will make it possible to easily add items conditionally.
This commit is contained in:
Romain Vimont
2024-11-21 22:44:12 +01:00
parent 39acd9a316
commit efea97a026
3 changed files with 57 additions and 48 deletions

View File

@@ -33,11 +33,14 @@ else
mkdir "$HOST"
cd "$HOST"
"$SOURCES_DIR/$PROJECT_DIR"/configure \
--prefix="$INSTALL_DIR/$HOST" \
--host="$HOST_TRIPLET" \
--enable-shared \
conf=(
--prefix="$INSTALL_DIR/$HOST"
--host="$HOST_TRIPLET"
--enable-shared
--disable-static
)
"$SOURCES_DIR/$PROJECT_DIR"/configure "${conf[@]}"
fi
make -j