Merge pull request #204530 from skeuchel/cross-mbuffer
mbuffer: fix cross compilation
This commit is contained in:
commit
79a3c26b6f
1 changed files with 2 additions and 9 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue