[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user