xcbuild: fixup build with glibc-2.25

This commit is contained in:
Vladimír Čunát 2017-02-22 16:58:45 +01:00
parent 7ccd6f25f0
commit fe8aa284c2
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -31,6 +31,12 @@ in stdenv.mkDerivation rec {
cp -r --no-preserve=all ${linenoise} ThirdParty/linenoise
'';
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
postPatch = ''
sed 1i'#include <sys/sysmacros.h>' \
-i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h
'';
enableParallelBuilding = true;
# TODO: instruct cmake not to put it in /usr, rather than cleaning up