Skip to content

Commit

Permalink
livekit-libwebrtc: fix builds on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
WeetHet committed Dec 25, 2024
1 parent cf56aed commit f456056
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/BUILD.gn b/BUILD.gn
index 598bbbcb72..62c6c5a187 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -138,7 +138,7 @@ config("library_impl_config") {
# target_defaults and direct_dependent_settings.
config("common_inherited_config") {
defines = []
- cflags = [ "-fvisibility=default" ]
+ cflags = [ "-fvisibility=default", "-Wno-error=c++11-narrowing-const-reference" ]
ldflags = [ "-lavutil", "-lavformat", "-lavcodec" ]

if (rtc_dlog_always_on) {
2 changes: 2 additions & 0 deletions pkgs/by-name/li/livekit-libwebrtc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ stdenv.mkDerivation {
})
# Required for dynamically linking to ffmpeg libraries and exposing symbols
./0001-shared-libraries.patch
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
./0002-disable-narrowing-const-reference.patch
];

postPatch =
Expand Down

0 comments on commit f456056

Please sign in to comment.