summaryrefslogtreecommitdiff
path: root/platform/linux/config.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux/config.cmake')
-rw-r--r--platform/linux/config.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/linux/config.cmake b/platform/linux/config.cmake
index 57411f916d..5f4bf143b0 100644
--- a/platform/linux/config.cmake
+++ b/platform/linux/config.cmake
@@ -121,8 +121,10 @@ macro(mbgl_filesource)
target_add_mason_package(mbgl-filesource PUBLIC sqlite)
+ # We're not referencing any cURL symbols since we're dynamically loading it. However, we want to
+ # link the library anyway since we're definitely going to load it on startup anyway.
target_link_libraries(mbgl-filesource
- PUBLIC -lcurl
+ PUBLIC -Wl,--no-as-needed -lcurl -Wl,--as-needed
)
endmacro()