Skip to content

Commit b456cbb

Browse files
committed
libaom: fix build on FreeBSD
1 parent cdec7e9 commit b456cbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/li/libaom/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ stdenv.mkDerivation rec {
5555

5656
propagatedBuildInputs = lib.optional enableVmaf libvmaf;
5757

58+
env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD {
59+
# This can be removed when we switch to libcxx from llvm 20
60+
# https://github.com/llvm/llvm-project/pull/122361
61+
NIX_CFLAGS_COMPILE = "-D_XOPEN_SOURCE=700";
62+
};
63+
5864
preConfigure = ''
5965
# build uses `git describe` to set the build version
6066
cat > $NIX_BUILD_TOP/git << "EOF"

0 commit comments

Comments
 (0)