Skip to content

Commit

Permalink
hdf4: fix cross
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Oct 13, 2024
1 parent c0ca072 commit 815fd2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/tools/misc/hdf4/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ stdenv.mkDerivation rec {
"-DCMAKE_Fortran_FLAGS=-fallow-argument-mismatch"
]
else [ "-DHDF4_BUILD_FORTRAN=OFF" ]
);
) ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-DTEST_LFS_WORKS_RUN=OFF"
"-DH4_PRINTF_LL_TEST_RUN=OFF"
"-DH4_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT="
];

env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = toString [
Expand Down

0 comments on commit 815fd2a

Please sign in to comment.