diff options
Diffstat (limited to 'platform/linux')
-rw-r--r-- | platform/linux/config.cmake | 4 | ||||
-rw-r--r-- | platform/linux/src/linking.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/platform/linux/config.cmake b/platform/linux/config.cmake index 53683daef0..687dd42a77 100644 --- a/platform/linux/config.cmake +++ b/platform/linux/config.cmake @@ -113,8 +113,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() diff --git a/platform/linux/src/linking.cpp b/platform/linux/src/linking.cpp new file mode 100644 index 0000000000..7deb6020ad --- /dev/null +++ b/platform/linux/src/linking.cpp @@ -0,0 +1,2 @@ +__asm__(".symver powf,powf@GLIBC_2.2.5"); +__asm__(".symver logf,logf@GLIBC_2.2.5"); |