        defines += [ "HAVE_EBP_AVAILABLE=0" ]
      } else {
        defines += [ "HAVE_EBP_AVAILABLE=1" ]
-@@ -422,6 +422,12 @@ if (is_component_ffmpeg) {
+@@ -431,6 +431,12 @@ if (is_component_ffmpeg) {
      # So we can append below and assume they're defined.
      ldflags = []
  

       ]
     }
 
-    if (is_mac && !is_component_build) {
-      ldflags += [ "-Wl,-install_name,@rpath/libffmpeg.dylib" ]
-    }
   }
 } else {
   source_set("ffmpeg") {

diff --git a/BUILD.gn b/BUILD.gn
index 5ea4e37336..7c75e56f68 100755
--- BUILD.gn
+++ BUILD.gn
@@ -268,7 +268,7 @@ target(link_target_type, "ffmpeg_internal") {
   # Windows builds can't compile without EBP because we can't omit frame
   # pointers like we do on posix.
   if (current_cpu == "x86") {
