1f1d01a3a7
- Added "linker_pie_flag.patch" in order to link with "-pie". Replaces previous "fix-pie-warning.patch". - "project_certs_fallback.patch" renamed to "certs_fallback.patch". Modified and adapted to Godot source code changes. - bash completion files "godot", "godot-headless", "godot-runner" and "godot-server" added. - Location of documentation in man page adjusted. - godot-rpmlintrc deleted with filter "no-manual-page-for-binary" because this warning doesn't seems to be thrown anymore. - Build option "faster_build" introduced to speed up build during tests. - Removed patch "fix-pie-warning.patch" OBS-URL: https://build.opensuse.org/request/show/777745 OBS-URL: https://build.opensuse.org/package/show/games/godot?expand=0&rev=5
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From: cunix@mail.de
|
|
Date: 2020-02-12 12:00:00
|
|
Subject: linker should use "-pie" instead of "-no-pie"
|
|
References: https://github.com/godotengine/godot/pull/23542#issuecomment-436385853
|
|
https://github.com/godotengine/godot/pull/23542
|
|
https://github.com/godotengine/godot/issues/34533
|
|
Upstream: seems to do the opposite
|
|
|
|
Linker flag "-no-pie" is added by upstream.
|
|
rpmlint complains this violates project policy.
|
|
Patch replaces flag "-no-pie" with "-pie".
|
|
|
|
---
|
|
|
|
diff -r -U 5 a/platform/x11/detect.py b/platform/x11/detect.py
|
|
--- a/platform/x11/detect.py
|
|
+++ b/platform/x11/detect.py
|
|
@@ -182,11 +182,11 @@
|
|
# Check for gcc version >= 6 before adding -no-pie
|
|
if using_gcc(env):
|
|
version = get_compiler_version(env)
|
|
if version != None and version[0] >= '6':
|
|
env.Append(CCFLAGS=['-fpie'])
|
|
- env.Append(LINKFLAGS=['-no-pie'])
|
|
+ env.Append(LINKFLAGS=['-pie'])
|
|
# Do the same for clang should be fine with Clang 4 and higher
|
|
if using_clang(env):
|
|
version = get_compiler_version(env)
|
|
if version != None and version[0] >= '4':
|
|
env.Append(CCFLAGS=['-fpie'])
|