dockcross/tools/builder/functions/makefile_fn.sh
Bensuperpc e8c98ab58e Update builder scripts
Update builder scripts

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-07-07 16:56:05 +02:00

16 lines
388 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
makefile_build () {
local image=$1
shift 1
echo "Pulling dockcross/$image"
docker pull dockcross/$image
echo "Make script dockcross-$image"
docker run --rm dockcross/$image > ./dockcross-$image
chmod +x ./dockcross-$image
echo "Build..."
./dockcross-$image bash -c 'make CXX=$CXX CC=$CC AR=$AR AS=$AS CPP=$CPP FC=$FC'
}