8000 add $ORIGIN to rpath in elinux (#1720) · flutter-webrtc/flutter-webrtc@dac9dc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit dac9dc8

Browse files
authored
add $ORIGIN to rpath in elinux (#1720)
1 parent bdd5bcc commit dac9dc8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

elinux/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,10 @@ set(flutter_webrtc_bundled_libraries
5151
"${CMAKE_CURRENT_SOURCE_DIR}/../third_party/libwebrtc/lib/${FLUTTER_TARGET_PLATFORM}/libwebrtc.so"
5252
PARENT_SCOPE
5353
)
54+
55+
# Add $ORIGIN to RPATH so that lib/libflutter_webrtc_plugin.so can find lib/libwebrtc.so at runtime
56+
set_property(
57+
TARGET ${PLUGIN_NAME}
58+
PROPERTY BUILD_RPATH
59+
"\$ORIGIN"
60+
)

0 commit comments

Comments
 (0)
0