gfortran-darwin: disable format hardening
This commit is contained in:
parent
d8d6f0bfcb
commit
9893a43dc3
@ -7,12 +7,18 @@
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gfortran-${version}";
|
name = "gfortran-${version}";
|
||||||
version = "5.1.0";
|
version = "5.1.0";
|
||||||
buildInputs = [gmp mpfr libmpc isl_0_14 cloog zlib];
|
|
||||||
|
buildInputs = [ gmp mpfr libmpc isl_0_14 cloog zlib ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
|
url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
|
||||||
sha256 = "1bd5vj4px3s8nlakbgrh38ynxq4s654m6nxz7lrj03mvkkwgvnmp";
|
sha256 = "1bd5vj4px3s8nlakbgrh38ynxq4s654m6nxz7lrj03mvkkwgvnmp";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = ./gfortran-darwin.patch;
|
patches = ./gfortran-darwin.patch;
|
||||||
|
|
||||||
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--disable-bootstrap
|
--disable-bootstrap
|
||||||
--disable-cloog-version-check
|
--disable-cloog-version-check
|
||||||
@ -28,11 +34,15 @@ stdenv.mkDerivation rec {
|
|||||||
--with-native-system-header-dir=${Libsystem}/include
|
--with-native-system-header-dir=${Libsystem}/include
|
||||||
--with-system-zlib
|
--with-system-zlib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
export DYLD_LIBRARY_PATH=`pwd`/`uname -m`-apple-darwin`uname -r`/libgcc
|
export DYLD_LIBRARY_PATH=`pwd`/`uname -m`-apple-darwin`uname -r`/libgcc
|
||||||
'';
|
'';
|
||||||
makeFlags = ["CC=clang"];
|
|
||||||
|
makeFlags = [ "CC=clang" ];
|
||||||
|
|
||||||
passthru.cc = stdenv.cc.cc;
|
passthru.cc = stdenv.cc.cc;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "GNU Fortran compiler, part of the GNU Compiler Collection";
|
description = "GNU Fortran compiler, part of the GNU Compiler Collection";
|
||||||
homepage = "https://gcc.gnu.org/fortran/";
|
homepage = "https://gcc.gnu.org/fortran/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user