Fix shared library dependencies verification on some platforms (#8349)
authorJan Vorlicek <janvorli@microsoft.com>
Tue, 29 Nov 2016 18:09:35 +0000 (19:09 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2016 18:09:35 +0000 (19:09 +0100)
commit74816870ce9ff5ec41d30455a7dcc3b5d327bf45
treefc148a063f34c8bfc70e15d24a5e4abba272f78d
parente67851210d1c03d730a3bc97a87e8a6713bbf772
Fix shared library dependencies verification on some platforms (#8349)

The existing way of verifying shared library dependencies, used for
System.Globalization.Native.so, doesn't work on platforms that don't
have ldd or where ldd doesn't support the `-r` option.
This change makes the check happen on non-Alpine Linux only for now.
It also refactors the way the check is performed. Instead of doing it
post build in the build.sh, it is now performed as a postbuild phase
of the System.Globalization.Native target and it is also generalized
so that we can easily add such verification to other build targets.
The new verify-so.sh script is also used in corefx.
build.sh
functions.cmake
src/corefx/System.Globalization.Native/CMakeLists.txt
verify-so.sh [new file with mode: 0755]