From 500cf3864e2897ac8315c580f16d454296eb917f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 28 May 2018 16:23:17 +0200 Subject: [linux] load cURL dynamically for wider compatibility --- platform/linux/config.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'platform/linux') 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() -- cgit v1.2.1