2 # See "etc/utils/linux/mk-musl.sh" in order to build musl libc!
4 cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
7 local command="make -B CC=/usr/local/musl/${1}/bin/musl-gcc STATIC=1 STRIP=1 FLTO=1"
8 $BASH -x -c "${command}${2:+ ${2}}"
9 cp -vf "frontend/bin/slunkcrypt" "out/slunkcrypt-${1}"
12 if [[ "$OSTYPE" != "linux-gnu"* ]]; then
13 echo "This script is supposed to run on the linux platform !!!"
17 rm -rf "out" && mkdir
-p "out"
19 $BASH -x -c "make clean"
21 mk_slunk
"x86_64" "MARCH=x86-64 MTUNE=nocona"
22 mk_slunk
"i686" "MARCH=pentiumpro MTUNE=pentium3"
29 printf "\033[1;32m\nBuild completed successfully.\033[0m\n\n"