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:
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 a new issue