ADDED build/make-kit-crosscompile Index: build/make-kit-crosscompile ================================================================== --- /dev/null +++ build/make-kit-crosscompile @@ -0,0 +1,17 @@ +#! /bin/sh + +if [ -z "${CROSS}" ]; then + echo 'Error: Environment variable CROSS is empty/unset. Aborting.' >&2 + + exit 1 +fi + +PATH="${PATH}:${HOME}/root/cross-compilers/${CROSS}/bin" +AR="${CROSS}-ar" +CC="${CROSS}-gcc ${CC_ADD}" +CXX="${CROSS}-g++ ${CC_ADD}" +RANLIB="${CROSS}-ranlib" +STRIP="${CROSS}-strip" +export PATH AR CC CXX RANLIB STRIP + +./kitcreator "$@" --host="${CROSS}" ADDED build/make-kit-hpux-hppa64 Index: build/make-kit-hpux-hppa64 ================================================================== --- /dev/null +++ build/make-kit-hpux-hppa64 @@ -0,0 +1,6 @@ +#! /bin/sh + +CROSS="hppa64-hp-hpux11.11" +export CROSS + +./build/make-kit-crosscompile "$@" --enable-64bit Index: build/make-kit-linux-amd64 ================================================================== --- build/make-kit-linux-amd64 +++ build/make-kit-linux-amd64 @@ -1,11 +1,7 @@ #! /bin/sh -PATH="${PATH}:${HOME}/root/cross-compilers/x86_64-unknown-linux-gnu/bin/" -AR=x86_64-unknown-linux-gnu-ar -CC=x86_64-unknown-linux-gnu-gcc -CXX=x86_64-unknown-linux-gnu-g++ -RANLIB=x86_64-unknown-linux-gnu-ranlib -STRIP=x86_64-unknown-linux-gnu-strip -export PATH AR CC CXX RANLIB STRIP - -./kitcreator "$@" --host=x86_64-unknown-linux-gnu --enable-64bit +CROSS="x86_64-unknown-linux-gnu" +CC_ADD="-m64" +export CROSS CC_ADD + +./build/make-kit-crosscompile "$@" --enable-64bit ADDED build/make-kit-solaris-amd64 Index: build/make-kit-solaris-amd64 ================================================================== --- /dev/null +++ build/make-kit-solaris-amd64 @@ -0,0 +1,7 @@ +#! /bin/sh + +CROSS="i386-pc-solaris2.10" +CC_ADD="-m64" +export CROSS CC_ADD + +./build/make-kit-crosscompile "$@" --enable-64bit ADDED build/make-kit-solaris-i386 Index: build/make-kit-solaris-i386 ================================================================== --- /dev/null +++ build/make-kit-solaris-i386 @@ -0,0 +1,6 @@ +#! /bin/sh + +CROSS="i386-pc-solaris2.10" +export CROSS + +./build/make-kit-crosscompile "$@" ADDED build/make-kit-solaris-sparc Index: build/make-kit-solaris-sparc ================================================================== --- /dev/null +++ build/make-kit-solaris-sparc @@ -0,0 +1,6 @@ +#! /bin/sh + +CROSS="sparc-sun-solaris2.10" +export CROSS + +./build/make-kit-crosscompile "$@" ADDED build/make-kit-solaris-sparc64 Index: build/make-kit-solaris-sparc64 ================================================================== --- /dev/null +++ build/make-kit-solaris-sparc64 @@ -0,0 +1,7 @@ +#! /bin/sh + +CROSS="sparc-sun-solaris2.10" +CC_ADD="-m64" +export CROSS CC_ADD + +./build/make-kit-crosscompile "$@" --enable-64bit Index: build/test/test ================================================================== --- build/test/test +++ build/test/test @@ -42,20 +42,34 @@ fi rm -f "${file}" done +# Disable WINE debugging +WINEPREFIX="${TESTDIR}/.wine" +export WINEPREFIX +rm -rf "${WINEPREFIX}" +mkdir "${WINEPREFIX}" + +cat << \_EOF_ > "${WINEPREFIX}/update-reg" +[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug] +"Auto"=dword:00000001 +"Debugger"="false" +_EOF_ + +regedit "${WINEPREFIX}/update-reg" >/dev/null 2>/dev/null + # Start Xvfb for X11-based tests XVFB_PID="$( Xvfb :31 -screen 0 800x600x24 -nolisten tcp >/dev/null 2>/dev/null & echo "$!" )" DISPLAY=:31 export DISPLAY failed="" -for kit in normal normal-zip normal-threaded normal-threaded-zip normal-statictk normal-notk normal-threaded-notk normal-threaded-zip-notk normal-nomk4 min min-static normal-kitdll normal-threaded-kitdll normal-notk-kitdll normal-nomk4-kitdll normal-nomk4-notk-kitdll normal-threaded-nomk4-kitdll normal-threaded-notk-nomk4-kitdll min-kitdll win32-i586 win32-i586-zip win32-i586-threaded win32-i586-threaded-zip win32-i586-notk win32-i586-threaded-notk win32-i586-nomk4 win32-i586-kitdll win32-i586-threaded-kitdll win32-i586-notk-kitdll win32-i586-nomk4-kitdll win32-i586-nomk4-notk-kitdll win32-i586-threaded-nomk4-kitdll win32-i586-threaded-notk-nomk4-kitdll linux-mipsel-min linux-mipsel-min-kitdll linux-amd64-notk linux-amd64-notk-kitdll; do +for kit in normal normal-zip normal-threaded normal-threaded-zip normal-statictk normal-notk normal-threaded-notk normal-threaded-zip-notk normal-nomk4 min min-static normal-kitdll normal-threaded-kitdll normal-notk-kitdll normal-nomk4-kitdll normal-nomk4-notk-kitdll normal-threaded-nomk4-kitdll normal-threaded-notk-nomk4-kitdll min-kitdll win32-i586 win32-i586-zip win32-i586-threaded win32-i586-threaded-zip win32-i586-notk win32-i586-threaded-notk win32-i586-nomk4 win32-i586-kitdll win32-i586-threaded-kitdll win32-i586-notk-kitdll win32-i586-nomk4-kitdll win32-i586-nomk4-notk-kitdll win32-i586-threaded-nomk4-kitdll win32-i586-threaded-notk-nomk4-kitdll linux-mipsel-min linux-mipsel-min-kitdll linux-amd64-notk linux-amd64-notk-kitdll solaris-i386 solaris-i386-kitdll solaris-amd64 solaris-amd64-kitdll solaris-sparc solaris-sparc-kitdll solaris-sparc64 solaris-sparc64-kitdll hpux-hppa64-notk hpux-hppa64-notk-kitdll; do kitcreator="./kitcreator" args="" runnable="1" iszip="0" statictk="0" @@ -94,12 +108,18 @@ runnable="0" xcompile="1" notk="1" iszip="1" ;; - linux-amd64|linux-amd64-*) - kitcreator="./build/make-kit-linux-amd64" + linux-amd64|linux-amd64-*|\ + solaris-i386|solaris-i386-*|\ + solaris-amd64|solaris-amd64-*|\ + solaris-sparc|solaris-sparc-*|\ + solaris-sparc64|solaris-sparc64-*|\ + hpux-hppa64|hpux-hppa64-*) + platform="$(echo "${kit}" | cut -f 1-2 -d '-')" + kitcreator="./build/make-kit-${platform}" runnable="0" xcompile="1" iszip="0" ;; esac @@ -236,10 +256,19 @@ echo " cat << \__EOF__ > ./build/make-minkit" >> "${buildlog}" sed 's@^@ @' './build/make-minkit' >> "${buildlog}" echo " __EOF__" >> "${buildlog}" echo '' >> "${buildlog}" fi + + # Several build scripts rely on make-kit-crosscompile to work + if grep './build/make-kit-crosscompile' "${kitcreator}" >/dev/null 2>/dev/null; then + echo " cat << \__EOF__ > ./build/make-kit-crosscompile" >> "${buildlog}" + sed 's@^@ @' './build/make-kit-crosscompile' >> "${buildlog}" + echo " __EOF__" >> "${buildlog}" + echo '' >> "${buildlog}" + fi + echo " cat << \__EOF__ > ${kitcreator}" >> "${buildlog}" sed 's@^@ @' "${kitcreator}" >> "${buildlog}" echo " __EOF__" >> "${buildlog}" echo '' >> "${buildlog}" fi