dmd: fixup build with glibc-2.25

wip/yesman
Vladimír Čunát 7 years ago
parent cab0b445be
commit 723f23d291
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 6
      pkgs/development/compilers/dmd/2.067.1.nix

@ -19,7 +19,11 @@ stdenv.mkDerivation {
# Was not able to compile on darwin due to "__inline_isnanl"
# being undefined.
substituteInPlace src/dmd/root/port.c --replace __inline_isnanl __inline_isnan
'';
''
+ stdenv.lib.optionalString stdenv.isLinux ''
substituteInPlace src/dmd/root/port.c \
--replace "#include <bits/mathdef.h>" "#include <complex.h>"
'';
# Buid and install are based on http://wiki.dlang.org/Building_DMD
buildPhase = ''

Loading…
Cancel
Save