aboutsummaryrefslogtreecommitdiff
path: root/sub/musl/muslgccmake-buildhost
blob: 703efbdf4d5d7e95e02ead80d00850c10805b719 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e

output="$1"
triple="$2"
xgcc="$3"

file=$output/build-host/bin/${triple}-muslgcc
echo '#!/bin/sh' > $file
echo "exec $xgcc -isystem $output/rootfs/opt/linux-kernel-headers/include -s \"\$@\"" >> $file
s6-chmod 0755 $file