Skip to content

Commit

Permalink
godot3: fix PIE hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Jan 12, 2025
1 parent f28864e commit 81077e8
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 81077e8

Please sign in to comment.