gentoo-ebuilds/dev-games/godot/files/godot-4.3-scons.patch
Ionen Wolkens 3f07a8e5f1
dev-games/godot: add 4.3
Decent odds that overlooked something given many mundane changes
were done to the build system and it makes it hard to make out the
important changes by diff'ing. Changelog is also too long to read
(really), and highlights are not aimed at packagers.

Notably adds wayland support, albeit building gui without X
doesn't work so well yet. As such not adding IUSE="X" yet.

libdecor could be optional even with USE=wayland, but felt that
it isn't worth its own USE.

Note using system miniupnpc is still broken without patching,
so leaving that alone for now.

Attempted to use mbedtls-3.x given it bundles 3.6.0, but there
is some caveats that prevent it (see ebuild comment). It still
supports 2.x, so just going to keep the upper bound for now.

Have not tested musl but the old patch should be obsolete
thanks to the new execinfo option which does the same thing
we were doing (disables crash handler).

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2024-08-16 00:22:47 -04:00

15 lines
524 B
Diff

--- a/SConstruct
+++ b/SConstruct
@@ -297,2 +297,3 @@
opts.Add("CC", "C compiler binary")
+opts.Add("AR", "Archiver")
opts.Add("LINK", "Linker binary")
@@ -731,8 +732,2 @@
env.Append(CCFLAGS=[f"-ffile-prefix-map={project_path}=."])
- else:
- if methods.using_clang(env) and not methods.is_vanilla_clang(env):
- # Apple Clang, its linker doesn't like -s.
- env.Append(LINKFLAGS=["-Wl,-S", "-Wl,-x", "-Wl,-dead_strip"])
- else:
- env.Append(LINKFLAGS=["-s"])