[GDNative] disable -fPIC flag with msvc compiler

This commit is contained in:
Emmanuel Leblond 2017-11-25 20:26:42 +01:00
parent 9738ebcda0
commit 6e3d78c94c
No known key found for this signature in database
GPG Key ID: C360860E645EFFC0

View File

@ -245,7 +245,7 @@ if ARGUMENTS.get('gdnative_wrapper', False):
gd_wrapper_env = env.Clone()
gd_wrapper_env.Append(CPPPATH=['#modules/gdnative/include/'])
# I think this doesn't work on MSVC yet...
gd_wrapper_env.Append(CCFLAGS=['-fPIC'])
if not env.msvc:
gd_wrapper_env.Append(CCFLAGS=['-fPIC'])
gd_wrapper_env.Library("#bin/gdnative_wrapper_code", [gensource])