From 209ba9b911630debe231dadbc936391e8de13c3d Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 12 Jul 2023 22:24:50 -0700 Subject: [PATCH] libretro.pcsx2: disable fortify3 hardening flag --- pkgs/applications/emulators/retroarch/cores.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index 8da558bfbeb0..63e03bc00ad1 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -722,6 +722,10 @@ in # remove ccache substituteInPlace CMakeLists.txt --replace "ccache" "" ''; + + # causes redefinition of _FORTIFY_SOURCE + hardeningDisable = [ "fortify3" ]; + postBuild = "cd /build/source/build/pcsx2"; meta = { description = "Port of PCSX2 to libretro";