3
0
Fork 0
forked from mirrors/nixpkgs

linuxptp: Fix cross-compilation

Linux-PTP uses a kernel-like build system which requires that the
`CROSS_COMPILE` variable be set to the target prefix when
cross-compiling.
This commit is contained in:
Ben Gamari 2024-01-19 14:14:42 -05:00
parent e2bf756e03
commit 6807ea7973

View file

@ -15,7 +15,10 @@ stdenv.mkDerivation rec {
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
'';
makeFlags = [ "prefix=" ];
makeFlags = [
"prefix="
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
];
preInstall = ''
export DESTDIR=$out