+objects=""
+for i in $sources; do
+ obj=`mktemp temp/bootstrap/XXXXXX`
+ mv $obj $obj.o
+ obj=$obj.o
+ dir=${i%/*}
+ flags="$CFLAGS"
+ for j in $use_overlays; do
+ dir=${dir%/$j}
+ if [ -d "$dir/$j" ]; then
+ flags="$flags -iquote $dir -iquote $dir/$j"
+ break
+ fi
+ done
+ $COMPILER -c $DEBUG $i -o $obj $flags
+ objects="$objects $obj"
+done
+$COMPILER $objects -o builder-stage1 $LIBS
+
+if [ "$KEEP_TEMP" != "yes" ]; then
+ echo "Cleaning up"
+ rm -r temp/bootstrap
+fi
+
+echo "Using builder-stage1 to compile builder."
+ARGS=
+if [ "$PREFIX" ]; then
+ ARGS="$ARGS --prefix='$PREFIX'"
+fi
+if [ "$CUSTOM_COMPILER" = "yes" ]; then
+ ARGS="$ARGS CXX=$COMPILER"
+fi
+eval "./builder-stage1 $ARGS"