cvc3: 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-08-25 19:11:45 -07:00
parent f6c433d5a6
commit bb1d34d0f1
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -16,10 +16,6 @@ stdenv.mkDerivation rec {
# fails to configure on darwin due to gmp not found # fails to configure on darwin due to gmp not found
configureFlags = [ "LIBS=-L${gmp}/lib" "CXXFLAGS=-I${gmp.dev}/include" ]; configureFlags = [ "LIBS=-L${gmp}/lib" "CXXFLAGS=-I${gmp.dev}/include" ];
# disable stackprotector on aarch64-darwin for now
# https://github.com/NixOS/nixpkgs/issues/127608
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
postPatch = '' postPatch = ''
sed -e "s@ /bin/bash@bash@g" -i Makefile.std sed -e "s@ /bin/bash@bash@g" -i Makefile.std
find . -exec sed -e "s@/usr/bin/perl@${perl}/bin/perl@g" -i '{}' ';' find . -exec sed -e "s@/usr/bin/perl@${perl}/bin/perl@g" -i '{}' ';'