summaryrefslogtreecommitdiffstats
path: root/DynamicLoader.hxx.in
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2021-10-27 13:30:56 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-27 15:21:46 (GMT)
commit6015a898d463fc321187ae346155654d55393a4c (patch)
tree9413fdd221c42da73a35f6cf6c4945b67b13a18c /DynamicLoader.hxx.in
parent58f046ba26d67c6e1ceda2a20977e316f1a942ad (diff)
downloadCMake-6015a898d463fc321187ae346155654d55393a4c.zip
CMake-6015a898d463fc321187ae346155654d55393a4c.tar.gz
CMake-6015a898d463fc321187ae346155654d55393a4c.tar.bz2
KWSys 2021-10-27 (e19a5668)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit e19a5668f01bb9d96440ce96e777749d6e92562d (e19a5668f01bb9d96440ce96e777749d6e92562d). Upstream Shortlog ----------------- Mathieu Westphal (1): e28d7282 DynamicLoader: Add RTLD_GLOBAL as a supported flag on linux Sean McBride (8): 704a63d4 Replace sprintf with snprintf f9f6d67b Replace non-standard _snprintf with standard snprintf f771c009 Fix -Wunused-macros warning by defining under same conditions as usage f3d4b12b Fix Wmissing-prototypes warnings by making functions static 6f4a1826 Fix Wmissing-variable-declarations by declaring variable in a header 31d25023 Fix all Wold-style-cast warnings 0f44b620 Fix Wreserved-id-macro warning by removing double underscore 44718539 Fix for extraneous semi-colon warning
Diffstat (limited to 'DynamicLoader.hxx.in')
-rw-r--r--DynamicLoader.hxx.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/DynamicLoader.hxx.in b/DynamicLoader.hxx.in
index 539c742..4edd31c 100644
--- a/DynamicLoader.hxx.in
+++ b/DynamicLoader.hxx.in
@@ -73,7 +73,12 @@ public:
// This is currently only supported on Windows.
SearchBesideLibrary = 0x00000001,
- AllOpenFlags = SearchBesideLibrary
+ // Make loaded symbols visible globally
+ //
+ // This is currently only supported on *nix systems.
+ RTLDGlobal = 0x00000002,
+
+ AllOpenFlags = SearchBesideLibrary | RTLDGlobal
};
/** Load a dynamic library into the current process.