systemd: update substituteInPlace to restore cross

systemd-aarch64-unknown-linux-gnu> src/boot/efi/meson.build:433:8: ERROR: Program 'objcopy' not found or not executable
This commit is contained in:
Artturin 2022-07-21 05:00:18 +03:00
parent f09c360345
commit 229ecd4bbc

View file

@ -211,8 +211,8 @@ stdenv.mkDerivation {
substituteInPlace src/basic/path-util.h --replace "@defaultPathNormal@" "${placeholder "out"}/bin/" substituteInPlace src/basic/path-util.h --replace "@defaultPathNormal@" "${placeholder "out"}/bin/"
substituteInPlace src/boot/efi/meson.build \ substituteInPlace src/boot/efi/meson.build \
--replace \ --replace \
"find_program('objcopy'" \ "run_command(cc.cmd_array(), '-print-prog-name=objcopy', check: true).stdout().strip()" \
"find_program('${stdenv.cc.bintools.targetPrefix}objcopy'" "'${stdenv.cc.bintools.targetPrefix}objcopy'"
'' + ( '' + (
let let
# The following patches references to dynamic libraries to ensure that # The following patches references to dynamic libraries to ensure that