mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
registry: enable relocatable builds for anywhere with dladdr()
Such as Linux/BSD's. Matches the Windows/macOS behaviour. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1662>
This commit is contained in:
parent
4455d908eb
commit
102a342a01
1 changed files with 6 additions and 1 deletions
|
@ -1569,7 +1569,7 @@ priv_gst_get_relocated_libgstreamer (void)
|
||||||
|
|
||||||
g_free (base_dir);
|
g_free (base_dir);
|
||||||
}
|
}
|
||||||
#elif defined(__APPLE__) && defined(HAVE_DLADDR)
|
#elif defined(HAVE_DLADDR)
|
||||||
{
|
{
|
||||||
Dl_info info;
|
Dl_info info;
|
||||||
|
|
||||||
|
@ -1589,6 +1589,11 @@ priv_gst_get_relocated_libgstreamer (void)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#warning "Unsupported platform for retrieving the current location of a\
|
||||||
|
shared library. Relocatable builds will not work."
|
||||||
|
GST_WARNING ("Don't know how to retrieve the location of the shared "
|
||||||
|
"library libgstreamer-" GST_API_VERSION);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return dir;
|
return dir;
|
||||||
|
|
Loading…
Reference in a new issue