summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-03-05 11:01:13 +0100
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-03-20 17:19:08 +0100
commita31b8ea4146960584add961afde1804d67e29a24 (patch)
tree2a77f36c6e03c306f18680cc7ffc11062157bdce /config
parent60964e006e646c246783ca6746042c195d772a8a (diff)
Fix mingw defines
Diffstat (limited to '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')