summaryrefslogtreecommitdiff
path: root/config/windows.config
diff options
context:
space:
mode:
Diffstat (limited to 'config/windows.config')
-rw-r--r--config/windows.config4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/windows.config b/config/windows.config
index 0f6d370..74e5f32 100644
--- a/config/windows.config
+++ b/config/windows.config
@@ -9,9 +9,11 @@ from cerbero.config import Architecture
if target_arch == Architecture.X86:
host = 'i686-w64-mingw32'
_path = 'w32'
+ _mingw_defines = "-DMINGW32 -D__MINGW32__"
else:
host = 'x86_64-w64-mingw32'
_path = 'w64'
+ _mingw_defines = "-DMINGW64 -D__MINGW64__"
if not toolchain_prefix:
toolchain_prefix = os.path.join(prefix, '..', 'mingw', _path)
@@ -21,7 +23,7 @@ def cmd(command):
# Toolchain environment
os.environ['CFLAGS'] = "-DWINVER=0x0501"
-os.environ['CPPFLAGS'] = "-DMINGW32 -D__MINGW32__"
+os.environ['CPPFLAGS'] = _mingw_defines
os.environ['LDFLAGS'] = "-L%s/lib %s" % (toolchain_prefix, os.environ['LDFLAGS'])
os.environ['CXXFLAGS']=os.environ['CFLAGS']
os.environ['CC']= cmd('gcc')