[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
This commit is contained in:
Konstantin Käfer
2016-12-14 16:05:38 +01:00
parent e8a48a6d63
commit e182731092

View File

@@ -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()