Skip to content
Snippets Groups Projects
Commit 06b83adb authored by nkennedy's avatar nkennedy
Browse files

Use realpath for adding /opt/stonesoup/dependencies libraries to safedirs.

This fixes library gathering when this is a symlink elsewhere, consistent with getlibs.sh.
ok nkennedy@ ip:peasoup


Former-commit-id: 9b284e02e546eb88d728ea0729ea85ba8ca65142
parent 75a43cf5
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ safe_dir_list="/lib /lib/tls/i686/cmov /usr/lib /lib/i686/cmov /lib/i386-linux-g
# Add all library directories under /opt/stonesoup/dependencies if present
if [ -d "/opt/stonesoup/dependencies" ]; then
stonesoup_dir_list=$( ( for d in `find /opt/stonesoup/dependencies -name 'lib*.so'`; do dirname $d; done ) | sort | uniq | tr "\\n" " " )
stonesoup_dir_list=$( ( for d in `find /opt/stonesoup/dependencies -name 'lib*.so'`; do dirname $(realpath $d); done ) | sort | uniq | tr "\\n" " " )
safe_dir_list="$safe_dir_list $stonesoup_dir_list"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment