From 28b6f2f46d8d142a849f11a2f82c4bfac40dd5bb Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Mon, 30 Jul 2018 15:46:04 -0700 Subject: [PATCH] build: [gn] fix rpath when building with component ffmpeg (#13874) --- BUILD.gn | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index fedd2181352..5d09975a3c4 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -6,6 +6,7 @@ import("build/npm.gni") import("//pdf/features.gni") import("//build/config/win/manifest.gni") import("electron_paks.gni") +import("//third_party/ffmpeg/ffmpeg_options.gni") if (is_mac) { import("//build/config/mac/rules.gni") @@ -632,5 +633,10 @@ if (is_mac) { "/DELAYLOAD:API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL", ] } + if (is_linux) { + if (!is_component_build && is_component_ffmpeg) { + configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] + } + } } }