@ -71,13 +71,11 @@ def configure(conf):
@@ -71,13 +71,11 @@ def configure(conf):
conf.env.DEST_64BIT = False # predict state
try:
conf.check_cc(
fragment='''
int main( void )
fragment='''int main( void )
{
int check[sizeof(void*) == 4 ? 1: -1];
return 0;
}
''',
}''',
msg = 'Checking if compiler create 32 bit code')
except conf.errors.ConfigurationError:
# Program not compiled, we have 64 bit
@ -112,6 +110,12 @@ def configure(conf):
@@ -112,6 +110,12 @@ def configure(conf):
conf.env.append_unique('CFLAGS', ['/Z7'])
conf.env.append_unique('CXXFLAGS', ['/Z7'])
conf.env.append_unique('LINKFLAGS', ['/DEBUG'])
conf.env.append_unique('DEFINES', '_USING_V110_SDK71_') # Force XP compability
# Force XP compability, all build targets should add
# subsystem=bld.env.MSVC_SUBSYSTEM
# TODO: wrapper around bld.stlib, bld.shlib and so on?
conf.env.MSVC_SUBSYSTEM = 'WINDOWS,5.01'
if(conf.env.DEST_OS != 'win32'):
conf.check( lib='dl' )