27 lines
475 B
Text
27 lines
475 B
Text
|
|
redo-ifchange arches configure redoconf/utils.sh
|
||
|
|
|
||
|
|
config() {
|
||
|
|
local dir="$1" arch="$2"
|
||
|
|
shift
|
||
|
|
shift
|
||
|
|
[ -d "$dir" ] || mkdir "$dir"
|
||
|
|
(
|
||
|
|
cd "$dir" &&
|
||
|
|
../configure --host="$arch" "$@" &&
|
||
|
|
redo-ifchange rc/CC.rc &&
|
||
|
|
echo "$dir"
|
||
|
|
) || :
|
||
|
|
}
|
||
|
|
|
||
|
|
for d in $(cat arches); do
|
||
|
|
if [ "$d" = "native" ]; then
|
||
|
|
arch=""
|
||
|
|
else
|
||
|
|
arch="$d"
|
||
|
|
fi
|
||
|
|
config "out.$d" "$arch" &
|
||
|
|
config "out.$d.static" "$arch" "--enable-static" &
|
||
|
|
config "out.$d.opt" "$arch" "--enable-optimization" &
|
||
|
|
done
|
||
|
|
|
||
|
|
wait
|