mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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:
parent
e2bf756e03
commit
6807ea7973
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user