Skip to content

Commit

Permalink
[Hotfix] Don't open lib with RTLD_GLOBAL
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Mar 4, 2024
1 parent 64e5651 commit 454abc4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_policy(SET CMP0091 NEW)
set(CMAKE_FIND_NO_INSTALL_PREFIX TRUE FORCE)
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)

project(treelite LANGUAGES CXX C VERSION 4.1.1)
project(treelite LANGUAGES CXX C VERSION 4.1.2)

# Check compiler versions
# Use latest compilers to ensure that std::filesystem is available
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "packager.pep517"

[project]
name = "treelite"
version = "4.1.1"
version = "4.1.2"
authors = [
{name = "Hyunsu Cho", email = "[email protected]"}
]
Expand Down
2 changes: 1 addition & 1 deletion python/treelite/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.1
4.1.2
2 changes: 1 addition & 1 deletion python/treelite/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _load_lib():
os.add_dll_directory(
os.path.join(os.path.normpath(sys.base_prefix), "Library", "bin")
)
lib = ctypes.CDLL(lib_path[0], mode=ctypes.RTLD_GLOBAL)
lib = ctypes.cdll.LoadLibrary(lib_path[0])
lib.TreeliteGetLastError.restype = ctypes.c_char_p
lib.log_callback = _log_callback
lib.warn_callback = _warn_callback
Expand Down

0 comments on commit 454abc4

Please sign in to comment.