diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-06-30 09:09:53 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-06-30 10:06:06 +0200 |
commit | 552d696e0a282fa09cd305d00c720e9649364983 (patch) | |
tree | 7551129d94d8585517dfd667c5243175c484c2e8 /misc | |
parent | 6f4d8f523814a4b89e89bf9ae2fbd4fc03e999f2 (diff) | |
download | fork-godot-webrtc-native-552d696e0a282fa09cd305d00c720e9649364983.tar.gz fork-godot-webrtc-native-552d696e0a282fa09cd305d00c720e9649364983.tar.bz2 fork-godot-webrtc-native-552d696e0a282fa09cd305d00c720e9649364983.zip |
Build Linux binaries using the Godot toolchian.
So we link to very old glibc and support ancient distros.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/patches/scons_path.diff | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/misc/patches/scons_path.diff b/misc/patches/scons_path.diff new file mode 100644 index 0000000..d7273ea --- /dev/null +++ b/misc/patches/scons_path.diff @@ -0,0 +1,29 @@ +diff --git a/godot-cpp/SConstruct b/godot-cpp/SConstruct +index 27ee137..32b425e 100644 +--- a/godot-cpp/SConstruct ++++ b/godot-cpp/SConstruct +@@ -54,6 +54,8 @@ else: + # Default tools with no platform defaults to gnu toolchain. + # We apply platform specific toolchains via our custom tools. + env = Environment(tools=["default"], PLATFORM="") ++# Allows us to use Godot buildroot toolchain ++env.PrependENVPath("PATH", os.getenv("PATH")) + + # Default num_jobs to local cpu count if not user specified. + # SCons has a peculiarity where user-specified options won't be overridden + +diff --git a/godot-cpp-3.x/SConstruct b/godot-cpp-3.x/SConstruct +index f653d54..6f40377 100644 +--- a/godot-cpp-3.x/SConstruct ++++ b/godot-cpp-3.x/SConstruct +@@ -194,6 +194,9 @@ if host_platform == "windows" and env["platform"] != "android": + + opts.Update(env) + ++# Allows us to use Godot buildroot toolchain ++env.PrependENVPath("PATH", os.getenv("PATH")) ++ + # Require C++14 + if host_platform == "windows" and env["platform"] == "windows" and not env["use_mingw"]: + # MSVC + |