Merge pull request #48269 from volth/patch-268

screen: fix cross-compiling
This commit is contained in:
Jörg Thalheim 2018-10-12 14:31:00 +01:00 committed by GitHub
commit c31909ff69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
stripLen = 1;
});
postPatch = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform)
# XXX: Awful hack to allow cross-compilation.
'' sed -i ./configure \
-e 's/^as_fn_error .. \("cannot run test program while cross compiling\)/$as_echo \1/g'
''; # "
buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isLinux pam
++ stdenv.lib.optional stdenv.isDarwin utmp;