diff options
author | AlexKnauth <alexander@knauth.org> | 2021-12-22 10:52:27 -0500 |
---|---|---|
committer | AlexKnauth <alexander@knauth.org> | 2021-12-22 11:10:08 -0500 |
commit | 4cd5481f71a76e331ea04101c1656a6b8090d2d1 (patch) | |
tree | 94206debda0851015d380786178a6f3f3a6208d8 /pkgs/development/compilers/gerbil | |
parent | feb2dcf2c19b078e718740ec02eaeb5059fa156c (diff) |
gerbil: disable stackprotector on aarch64-darwin for now
Diffstat (limited to 'pkgs/development/compilers/gerbil')
-rw-r--r-- | pkgs/development/compilers/gerbil/build.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gerbil/build.nix b/pkgs/development/compilers/gerbil/build.nix index 3d2fd7551e67d..040f17ff2850a 100644 --- a/pkgs/development/compilers/gerbil/build.nix +++ b/pkgs/development/compilers/gerbil/build.nix @@ -21,6 +21,15 @@ 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 = '' |