mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
When using `dpkg-shlibdeps` to automatically determine package
dependencies it considers the RUNPATH/RPATH of executables in order to
find all required shared libraries of such executables.
If the RUNPATH/RPATH contains a verbatim `$ORIGIN` (respective
`${ORIGIN}`), it will now be substituted by the packaging-paths of other
components that are marked as dependency and those paths will then be
used as additional search directories for `dpkg-shlibdeps`.
Associated tests were added as well.
Fixes: #21838
29 lines
308 B
C++
29 lines
308 B
C++
#if defined SHLIBDEPS_OTHER
|
|
|
|
# include "subdir/myotherlib.h"
|
|
|
|
int main()
|
|
{
|
|
myotherlib_function();
|
|
}
|
|
|
|
#elif defined SHLIBDEPS_PRIVATE
|
|
|
|
# include "shlibdeps-with-private-lib/myprivatelib.h"
|
|
|
|
int main()
|
|
{
|
|
myprivatelib_function();
|
|
}
|
|
|
|
#else
|
|
|
|
# include "mylib.h"
|
|
|
|
int main()
|
|
{
|
|
mylib_function();
|
|
}
|
|
|
|
#endif
|