Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

godot3: fix PIE hardening #370627

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pkgs/development/tools/godot/3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ stdenv.mkDerivation (self: {
sha256 = "sha256-C+1J5N0ETL1qKust+2xP9uB4x9NwrMqIm8aFAivVYQw=";
};

# Fix PIE hardening: https://github.com/godotengine/godot/pull/50737
postPatch = ''
substituteInPlace platform/x11/detect.py \
--replace-fail 'env.Append(LINKFLAGS=["-no-pie"])' ""
'';

nativeBuildInputs = [
autoPatchelfHook
installShellFiles
Expand Down