mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-04-05 13:29:16 +02:00
16 lines
419 B
Bash
Executable File
16 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
makefile_build () {
|
|
local image=$1
|
|
shift 1
|
|
|
|
echo "Pulling dockcross/$image:latest"
|
|
docker pull dockcross/$image:latest
|
|
echo "Make script dockcross-$image"
|
|
docker run --rm dockcross/$image:latest > ./dockcross-$image
|
|
chmod +x ./dockcross-$image
|
|
echo "Build build-$image"
|
|
./dockcross-$image bash -c 'make CXX=$CXX CC=$CC AR=$AR AS=$AS CPP=$CPP FC=$FC'
|
|
}
|