mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
dmd: fixup build with glibc-2.25
This commit is contained in:
parent
cab0b445be
commit
723f23d291
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue