Commit 22a87636 authored by Karel Slaný's avatar Karel Slaný

Updated Windows building script.

parent d8fe6579
......@@ -6,6 +6,12 @@ CONF_OPTS=""
CONF_OPTS="${CONF_OPTS} --enable-static-linking"
CONF_OPTS="${CONF_OPTS} --with-force-abi=fat"
#CONF_OPTS="${CONF_OPTS} --host=i586-mingw32msvc"
#CONF_OPTS="${CONF_OPTS} --host=i686-w64-mingw32"
#CONF_OPTS="${CONF_OPTS} --host=x86_64-w64-mingw32"
#CONF_OPTS="${CONF_OPTS} --with-win32-host=i686-w64-mingw32"
#CONF_OPTS="${CONF_OPTS} --with-win64-host=x86_64-w64-mingw32"
if [ "x$1" != "x" ]; then
for param in $@; do
case ${param} in
......
......@@ -5,15 +5,41 @@ SRC_ROOT="${SCRIPT_LOCATION}/.."
cd "${SRC_ROOT}"
MINGW_PREFIX=i586-mingw32msvc # Unbound 1.5.1 requires patching.
#MINGW_PREFIX=i686-w64-mingw32 # Currently does not work.
USAGE="$0 [w32|w64]"
# NPAPI extension was built directly oin Visual Studio.
MINGW_PREFIX=""
if [ "x$1" = "x" ]; then
MINGW_PREFIX=i586-mingw32msvc # Unbound 1.5.x requires patching.
#MINGW_PREFIX=i686-w64-mingw32
#MINGW_PREFIX=x86_64-w64-mingw32
else
case "$1" in
"w32")
MINGW_PREFIX=i686-w64-mingw32
;;
"w64")
MINGW_PREFIX=x86_64-w64-mingw32
;;
*)
echo "Unknown option '$1'."
echo "Usage:"
echo "${USAGE}"
exit 1
;;
esac
fi
"${MINGW_PREFIX}-gcc" -v 2>/dev/null || echo "${MINGW_PREFIX}-gcc not found"
"${MINGW_PREFIX}-gcc" -v 2>/dev/null || exit 1
# NPAPI extension was built directly in Visual Studio.
CONF_OPTS=""
CONF_OPTS="${CONF_OPTS} --enable-static-linking"
#CONF_OPTS="${CONF_OPTS} --enable-npapi-extensions"
CONF_OPTS="${CONF_OPTS} --with-force-abi=x86"
# Don't force ABI, let the script decide.
#CONF_OPTS="${CONF_OPTS} --with-force-abi=x86"
CONF_OPTS="${CONF_OPTS} --host=${MINGW_PREFIX} --target=${MINGW_PREFIX}"
./configure ${CONF_OPTS}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment