Merge branch 'windows_static' of https://github.com/sitsofe/fio
authorJens Axboe <axboe@kernel.dk>
Sun, 16 Sep 2018 16:13:23 +0000 (10:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Sep 2018 16:13:23 +0000 (10:13 -0600)
* 'windows_static' of https://github.com/sitsofe/fio:
  build: change where we set -static for Windows

Makefile
configure

index 42e520515845c2047bf9be442091a2ce52892e9c..4721b789be273ec70fdbc50f567c2bab771cddf0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -198,7 +198,7 @@ endif
 ifneq (,$(findstring CYGWIN,$(CONFIG_TARGET_OS)))
   SOURCE += os/windows/posix.c
   LIBS  += -lpthread -lpsapi -lws2_32
-  CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format -static
+  CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format
 endif
 
 OBJS := $(SOURCE:.c=.o)
index 26c345bb803b0d707745ee1d9f7b376db2dcf7f1..5490e26ea70f2db55f86c2e49ec2f9f362568767 100755 (executable)
--- a/configure
+++ b/configure
@@ -361,6 +361,7 @@ CYGWIN*)
   output_sym "CONFIG_WINDOWSAIO"
   # We now take the regular configuration path without having exit 0 here.
   # Flags below are still necessary mostly for MinGW.
+  build_static="yes"
   socklen_t="yes"
   rusage_thread="yes"
   fdatasync="yes"