Commit a8398f25 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: use otb_loader on all platforms

parent 04c7ed01
......@@ -41,15 +41,15 @@ for name in $OTB_SO_LIBRARIES $OTB_DY_LIBRARIES $OTB_EXE; do
elif echo "$F_OUTPUT" | grep -q ': broken symbolic link'; then
echo_and_report "$F_OUTPUT"
elif echo "$F_OUTPUT" | grep -q -i -e ': ELF .*shared object' -e ': ELF .*executable'; then
LDD_ERRORS=$(ldd "$name" | grep -i -e '=> not found' -e 'not a dynamic executable')
LDD_ERRORS=$(bin/otb_loader "$name")
if [ -n "$LDD_ERRORS" ]; then
echo_and_report "ldd $name"
echo_and_report "otb_loader $name"
echo_and_report "$LDD_ERRORS"
fi
elif echo "$F_OUTPUT" | grep -q -i -e ': Mach-O .*shared library' -e ': Mach-O .*bundle' -e ': Mach-O .*executable'; then
DL_ERRORS=$(dltest "$name" | grep -i 'ERROR')
DL_ERRORS=$(bin/otb_loader "$name")
if [ -n "$DL_ERRORS" ]; then
echo_and_report "dltest $name"
echo_and_report "otb_loader $name"
echo_and_report "$DL_ERRORS"
fi
elif echo "$F_OUTPUT" | grep -q ': symbolic link'; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment