Files
CMake/Tests/CPackComponentsDEB/mylibapp.cpp
Deniz Bahadir 27d161eac3 CPackDeb: dpkg-shlibdeps shall consider dependency components, too
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
2024-05-30 16:13:46 +02:00

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