diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2017-11-25 21:16:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-25 21:16:07 +0100 |
commit | 73a26b4c3f8167e900901527c267522629105d9a (patch) | |
tree | f689cfe1d8c9da3723e282653857fd0b560d4d88 | |
parent | 9738ebcda047fd9b4ddf71a0da5d682ade1a2666 (diff) | |
parent | 6e3d78c94c6ba0e872f37018276923158c621ba3 (diff) |
Merge pull request #13286 from touilleMan/gnative-wrappers-msvc-flags
[GDNative] disable -fPIC flag with msvc compiler
-rw-r--r-- | modules/gdnative/SCsub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index 54d0672a5b..f5a593cf4e 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -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]) |