gerbil: reenable stackprotector on aarch64-darwin

The original error that required disabling the stack protector on
aarch64-darwin has been fixed in GCC.
This commit is contained in:
Theodore Ni 2022-09-04 11:57:11 -07:00
parent 1ed43116cd
commit a813457d19
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -21,15 +21,6 @@ stdenv.mkDerivation rec {
buildInputs = [ gambit ]
++ buildInputs_libraries; # ++ buildInputs_staticLibraries;
# disable stackprotector on aarch64-darwin for now
# build error:
# ```
# /private/tmp/nix-build-gerbil-unstable-2020-11-05.drv-0/ccjyhWKi.s:326:15: error: index must be an integer in range [-256, 255].
# ldr x2, [x2, ___stack_chk_guard];momd
# ^
# ```
hardeningDisable = lib.optionals (gccStdenv.isAarch64 && gccStdenv.isDarwin) [ "stackprotector" ];
NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql";
postPatch = ''