···5656 # gcj in.
5757 unset LIBRARY_PATH
5858 unset CPATH
5959- if test -z "$crossStageStatic"; then
5959+ if test -z "$crossStageStatic" -o -n "$crossMingw"; then
6060 EXTRA_FLAGS_TARGET="-g0 -O2 -B${libcCross}/lib -idirafter ${libcCross}/include"
6161 EXTRA_LDFLAGS_TARGET="-Wl,-L${libcCross}/lib"
6262 fi
···121121 # the target libgcc as target libraries.
122122 # See 'configure:5370'
123123 rm -Rf zlib
124124+ fi
125125+126126+ if test -n "$crossMingw" -a -n "$crossStageStatic"; then
127127+ mkdir -p ../mingw
128128+ # --with-build-sysroot expects that:
129129+ cp -R $libcCross/include ../mingw
130130+ configureFlags="$configureFlags --with-build-sysroot=`pwd`/.."
124131 fi
125132126133 # Perform the build in a different directory.