summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--third_party/widevine/cdm/widevine_cdm.gyp2
-rw-r--r--webkit/media/webkit_media.gypi2
2 files changed, 4 insertions, 0 deletions
diff --git a/third_party/widevine/cdm/widevine_cdm.gyp b/third_party/widevine/cdm/widevine_cdm.gyp
index 44cf6e7..8394954 100644
--- a/third_party/widevine/cdm/widevine_cdm.gyp
+++ b/third_party/widevine/cdm/widevine_cdm.gyp
@@ -70,6 +70,8 @@
# -gstabs, used in the official builds, causes an ICE. Simply
# remove it.
'cflags!': ['-gstabs'],
+ # Allow the plugin wrapper to find the CDM in the same directory.
+ 'ldflags': ['-Wl,-rpath=\$$ORIGIN']
}],
[ 'OS == "win" and 0', {
'type': 'shared_library',
diff --git a/webkit/media/webkit_media.gypi b/webkit/media/webkit_media.gypi
index 62f9808..9f652e2 100644
--- a/webkit/media/webkit_media.gypi
+++ b/webkit/media/webkit_media.gypi
@@ -131,6 +131,8 @@
# -gstabs, used in the official builds, causes an ICE. Simply remove
# it.
'cflags!': ['-gstabs'],
+ # Allow the plugin wrapper to find the CDM in the same directory.
+ 'ldflags': ['-Wl,-rpath=\$$ORIGIN']
}],
['OS=="win"', {
'type': 'shared_library',