Merge pull request #204530 from skeuchel/cross-mbuffer

mbuffer: fix cross compilation
This commit is contained in:
Fabian Affolter 2022-12-05 18:21:12 +01:00 committed by GitHub
commit 79a3c26b6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,18 +16,11 @@ stdenv.mkDerivation rec {
buildInputs = [
openssl
];
nativeBuildInputs = [
which
];
# The mbuffer configure scripts fails to recognize the correct
# objdump binary during cross-building for foreign platforms.
# The correct objdump is exposed via the environment variable
# $OBJDUMP, which should be used in such cases.
preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
substituteInPlace configure \
--replace "OBJDUMP=$ac_cv_path_OBJDUMP" 'OBJDUMP=''${OBJDUMP}'
'';
doCheck = true;
meta = with lib; {