Merge pull request #266529 from jonringer/fix-libhugetlbfs-cross

libhugetlbfs: fix cross compile
This commit is contained in:
Artturi 2023-11-14 11:57:31 +02:00 committed by GitHub
commit 985a949093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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