forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
livekit-libwebrtc: fix builds on darwin (NixOS#368147)
- Loading branch information
Showing
2 changed files
with
41 additions
and
24 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
pkgs/by-name/li/livekit-libwebrtc/0002-disable-narrowing-const-reference.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters