mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
libhugetlbfs: fix cross compile
This commit is contained in:
parent
2387a37fa0
commit
9f806fc312
|
@ -32,6 +32,9 @@ stdenv.mkDerivation rec {
|
|||
"EXEDIR=$(bin)/bin"
|
||||
"DOCDIR=$(doc)/share/doc/libhugetlbfs"
|
||||
"MANDIR=$(man)/share/man"
|
||||
] ++ lib.optionals (stdenv.buildPlatform.system != stdenv.hostPlatform.system) [
|
||||
# The ARCH logic defaults to querying `uname`, which will return build platform arch
|
||||
"ARCH=${stdenv.hostPlatform.uname.processor}"
|
||||
];
|
||||
|
||||
# Default target builds tests as well, and the tests want a static
|
||||
|
|
Loading…
Reference in a new issue