From 58bf7fd1f31f185f8ab89102e8173901ce0f22b5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 22 Nov 2013 21:30:00 +0100 Subject: [PATCH] build: add -mwin32 on cygwin --- waftools/detections/compiler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index bad1da7673..ab658b8ce3 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -38,10 +38,14 @@ def __add_mingw_flags__(ctx): ctx.env.CFLAGS += ['-DBIG_ENDIAN=4321'] ctx.env.LAST_LINKFLAGS += ['-mconsole'] +def __add_cygwin_flags__(ctx): + ctx.env.CFLAGS += ['-mwin32'] + __compiler_map__ = { '__GNUC__': __add_gcc_flags__, '__clang__': __add_clang_flags__, '__MINGW32__': __add_mingw_flags__, + '__CYGWIN__': __add_cygwin_flags__, } def __apply_map__(ctx, fnmap):