Merge pull request #10640 from brad0/openbsd_dlopen

Fix dlopen()'ing libraries on OpenBSD
This commit is contained in:
Alvar 2025-11-27 12:13:18 +00:00 committed by GitHub
commit 8c230df3da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,9 +18,11 @@ Library::Library(const String& name)
String path;
#if defined(_WIN32)
path = name + ".dll";
#elif defined(__APPLE__)
#elif defined(__APPLE__) /* _WIN32 */
path = "lib" + name + "." + Application::GetAppSpecVersion() + ".dylib";
#else /* __APPLE__ */
#elif defined(__OpenBSD__) /* __APPLE__ */
path = "lib" + name + ".so";
#else /* __OpenBSD__ */
path = "lib" + name + ".so." + Application::GetAppSpecVersion();
#endif /* _WIN32 */