blob: 8a047199556f826f9a03c83799168f538aa6436d (
plain)
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
|
#!/bin/sh
#
# wrapper to setup cross-compilation of firmware
#
for v in CC CPP CXX AS AR NM RANLIB STRIP F77 CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
do
unset $v
done
args=
for t in "$@"
do
case "$t" in
(CC=*) ;;
(CPP=*) ;;
(CXX=*) ;;
(AR=*) ;;
(AS=*) ;;
(NM=*) ;;
(RANLIB=*) ;;
(STRIP=*) ;;
(F77=*) ;;
(CFLAGS=*) ;;
(CXXFLAGS=*) ;;
(CPPFLAGS=*) ;;
(LDFLAGS=*) ;;
(*) args="$args $t" ;;
esac
done
`dirname $0`/configure CFLAGS='-O2' $args --host=mb
|