-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmultiarch-build.sh
executable file
·49 lines (44 loc) · 1.07 KB
/
multiarch-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
set -x
mkdir -p archbuilds
###################### mipseb
export CC=/usr/bin/mips-linux-gnu-gcc
OUTEXT=mipseb
if ! ./configure --host ${CC} --enable-static; then
printf "\033[32mCONFIGURE FAILED on $CC\033[0m"
exit 81
fi
make clean
if ! make -j$(nproc); then
printf "\033[32mBUILD FAILED on $CC\033[0m"
exit 64
fi
cp src/dash archbuilds/dash.${OUTEXT}
###################### mipsel
export CC=/usr/bin/mipsel-linux-gnu-gcc
OUTEXT=mipsel
if ! ./configure --host ${CC} --enable-static; then
printf "\033[32mCONFIGURE FAILED on $CC\033[0m"
exit 82
fi
make clean
if ! make -j$(nproc); then
printf "\033[32mBUILD FAILED on $CC\033[0m"
exit 92
fi
cp src/dash archbuilds/dash.${OUTEXT}
###################### armel
export CC=/usr/bin/arm-linux-gnueabi-gcc
OUTEXT=armel
if ! ./configure --host ${CC} --enable-static; then
printf "\033[32mCONFIGURE FAILED on $CC\033[0m"
exit 83
fi
make clean
if ! make -j$(nproc); then
printf "\033[32mBUILD FAILED on $CC\033[0m"
exit 93
fi
cp src/dash archbuilds/dash.${OUTEXT}
unset CC
unset OUTEXT