diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-03-05 11:01:13 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-03-20 17:19:08 +0100 |
commit | a31b8ea4146960584add961afde1804d67e29a24 (patch) | |
tree | 2a77f36c6e03c306f18680cc7ffc11062157bdce /config | |
parent | 60964e006e646c246783ca6746042c195d772a8a (diff) |
Fix mingw defines
Diffstat (limited to 'config')
-rw-r--r-- | config/windows.config | 4 |
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') |