mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03: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