summaryrefslogtreecommitdiff
path: root/config_host
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2022-01-18 07:29:40 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2022-01-18 13:44:53 +0100
commitb5b1eae538a902fed165d5dd93ad6ddda3c5cb70 (patch)
treeda127f648f8dfa30abae0d20a0dffe9947206e9c /config_host
parent31700036e517691d154701f4b8aeecb85cde607f (diff)
Add HAVE_(UNIX_)DLAPI config header define
..., add the configure test flags and rename DLOPEN_LIBS to UNIX_DLAPI_LIBS. Initinally convert two dlsym callers to use HAVE_DLAPI and osl_getAsciiFunctionSymbol. There are a lot of places, which still use -ldl and even more direct dlsym calls; good opportunity for many simple EasyHacks. Change-Id: I4f2d2f7cb079a075af8f9d01eb5ee45de40c7f03 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128523 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'config_host')
-rw-r--r--config_host/config_global.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config_host/config_global.h.in b/config_host/config_global.h.in
index 0df9ac8a47f1..5f24fe8da397 100644
--- a/config_host/config_global.h.in
+++ b/config_host/config_global.h.in
@@ -43,4 +43,11 @@ Any change in this header will cause a rebuild of almost everything.
bogus -Werror=redundant-move (GCC 9)". */
#define HAVE_P1155R3 0
+// Whether the OS provides a usable dynamcic loading API
+#define HAVE_DLAPI 0
+
+// Whether the OS uses the common UNIX dynamcic loading API calls, like dlopen, dlsym, dladdr etc.
+// Use HAVE_DLAPI instead. Should not be used outside of sal/osl/unx/module.cxx!
+#define HAVE_UNIX_DLAPI 0
+
#endif