summaryrefslogtreecommitdiff
path: root/modules/gdnative
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2017-08-02 15:24:09 +0200
committerGitHub <noreply@github.com>2017-08-02 15:24:09 +0200
commit0586524b9ce67bdcab5cef88397c44bb7b9e46fb (patch)
treec888896379949e1bee4379fa84ab18d1089d95c1 /modules/gdnative
parent57d961a7e3a3bedfcd3921eeaac7fb43515a6f23 (diff)
parentc143f86968c512649651c823a688b410c6b52c52 (diff)
Merge pull request #10042 from karroffel/gdnative-header-include-paths
[GDNative/NativeScript] fix -rdynamic and removed _init call
Diffstat (limited to 'modules/gdnative')
-rw-r--r--modules/gdnative/SCsub14
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub
index 014c988bd7..65970d48c1 100644
--- a/modules/gdnative/SCsub
+++ b/modules/gdnative/SCsub
@@ -1,15 +1,13 @@
#!/usr/bin/env python
Import('env')
-Import('env_modules')
-mod_env = env_modules.Clone()
-mod_env.add_source_files(env.modules_sources, "*.cpp")
-mod_env.add_source_files(env.modules_sources, "godot/*.cpp")
+env.add_source_files(env.modules_sources, "*.cpp")
+env.add_source_files(env.modules_sources, "godot/*.cpp")
-mod_env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN'])
-mod_env.Append(CPPPATH=['#modules/gdnative/'])
+env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN'])
+env.Append(CPPPATH=['#modules/gdnative/'])
if "platform" in env and env["platform"] == "x11": # there has to be a better solution?
- mod_env.Append(LINKFLAGS=["-rdynamic"])
-mod_env.use_ptrcall = True
+ env.Append(LINKFLAGS=["-rdynamic"])
+env.use_ptrcall = True