Skip to content

Commit

Permalink
do not export the symbols from the static libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Apr 9, 2024
1 parent f3d787d commit 5b692f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.9]

### Changed
- All shared library symbols are now hidden on Linux, allowing the load the binary addon in a process that has loaded a different version of GDAL (on Windows this has always been possible and on maOS, while possible in theory, this particular linking mode is not supported by `node-gyp`)


## [3.8.5] 2024-04-09

### Added
Expand Down
5 changes: 4 additions & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@
"defines": [ "DARWIN" ]
}],
["OS == 'linux'", {
"defines": [ "LINUX" ]
"defines": [ "LINUX" ],
"ldflags": [
"-Wl,--exclude-libs,ALL"
]
}]
],
"configurations": {
Expand Down

0 comments on commit 5b692f3

Please sign in to comment.