summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-12-14 16:05:38 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-12-14 19:34:35 +0100
commite182731092e62441da8545121b469a22cb5116c1 (patch)
tree3cc376def15dbb7251dbf00fefacbb271d3f5165 /platform
parente8a48a6d6333a5b092e742ce3543870c2235de88 (diff)
downloadqtlocation-mapboxgl-e182731092e62441da8545121b469a22cb5116c1.tar.gz
[build] add -Wl,-bind_at_load to node.js bindings on macOS
this catches unbound symbols during loading of the extension, allowing us to spot potential linking errors earlier
Diffstat (limited to 'platform')
-rw-r--r--platform/macos/config.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/macos/config.cmake b/platform/macos/config.cmake
index af274f7fc2..dab507d42a 100644
--- a/platform/macos/config.cmake
+++ b/platform/macos/config.cmake
@@ -168,5 +168,6 @@ macro(mbgl_platform_node)
target_link_libraries(mbgl-node
PRIVATE "-framework Foundation"
PRIVATE "-framework OpenGL"
+ PRIVATE "-Wl,-bind_at_load"
)
endmacro()