dmd: fixup build with glibc-2.25
This commit is contained in:
parent
cab0b445be
commit
723f23d291
@ -19,6 +19,10 @@ stdenv.mkDerivation {
|
|||||||
# Was not able to compile on darwin due to "__inline_isnanl"
|
# Was not able to compile on darwin due to "__inline_isnanl"
|
||||||
# being undefined.
|
# being undefined.
|
||||||
substituteInPlace src/dmd/root/port.c --replace __inline_isnanl __inline_isnan
|
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
|
# Buid and install are based on http://wiki.dlang.org/Building_DMD
|
||||||
|
Loading…
Reference in New Issue
Block a user