gambit: disable stackprotector on aarch64-darwin for now

This commit is contained in:
AlexKnauth 2021-12-22 10:14:51 -05:00
parent 4c252f40af
commit de2e77ec98
2 changed files with 18 additions and 0 deletions

View File

@ -15,6 +15,15 @@ gccStdenv.mkDerivation {
buildInputs = [ autoconf ];
# disable stackprotector on aarch64-darwin for now
# build error:
# ```
# /private/tmp/nix-build-gambit-bootstrap-4.9.3.drv-0/ccbOVwnF.s:207: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" ];
configurePhase = ''
export CC=${gcc}/bin/gcc CXX=${gcc}/bin/g++ \
CPP=${gcc}/bin/cpp CXXCPP=${gcc}/bin/cpp LD=${gcc}/bin/ld \

View File

@ -35,6 +35,15 @@ gccStdenv.mkDerivation rec {
# Or wrap relevant programs to add a suitable PATH ?
#runtimeDeps = [ gnused gnugrep ];
# disable stackprotector on aarch64-darwin for now
# build error:
# ```
# /private/tmp/nix-build-gambit-unstable-2020-09-20.drv-0/ccIjyeeb.s:207: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" ];
configureFlags = [
"--enable-targets=${gambit-params.targets}"
"--enable-single-host"