projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable forced 32-bit build on Windows
[fio.git]
/
configure
diff --git
a/configure
b/configure
index 078dab8885002459e71f44a8b98dbe69d230e2cd..c0114367b2b1f7b69facb59fac65f7c71db63695 100755
(executable)
--- a/
configure
+++ b/
configure
@@
-133,6
+133,8
@@
for opt do
;;
--extra-cflags=*) CFLAGS="$CFLAGS $optarg"
;;
;;
--extra-cflags=*) CFLAGS="$CFLAGS $optarg"
;;
+ --build-32bit-win=*) build_32bit_win="$optarg"
+ ;;
--help)
show_help="yes"
;;
--help)
show_help="yes"
;;
@@
-183,10
+185,18
@@
SunOS)
CYGWIN*)
echo "Forcing known good options on Windows"
if test -z "$CC" ; then
CYGWIN*)
echo "Forcing known good options on Windows"
if test -z "$CC" ; then
- CC="x86_64-w64-mingw32-gcc"
+ if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
+ CC="i686-w64-mingw32-gcc"
+ else
+ CC="x86_64-w64-mingw32-gcc"
+ fi
fi
output_sym "CONFIG_LITTLE_ENDIAN"
fi
output_sym "CONFIG_LITTLE_ENDIAN"
- output_sym "CONFIG_64BIT_LLP64"
+ if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
+ output_sym "CONFIG_32BIT"
+ else
+ output_sym "CONFIG_64BIT_LLP64"
+ fi
output_sym "CONFIG_FADVISE"
output_sym "CONFIG_SOCKLEN_T"
output_sym "CONFIG_POSIX_FALLOCATE"
output_sym "CONFIG_FADVISE"
output_sym "CONFIG_SOCKLEN_T"
output_sym "CONFIG_POSIX_FALLOCATE"