From 06b83adba7d44930a1aac459bc370b1715346fc5 Mon Sep 17 00:00:00 2001
From: nkennedy <nkennedy@git.zephyr-software.com>
Date: Thu, 18 Jul 2013 17:26:04 +0000
Subject: [PATCH] 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
---
 tools/do_gatherlibs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/do_gatherlibs.sh b/tools/do_gatherlibs.sh
index 8bc3f80bd..79edcc676 100755
--- a/tools/do_gatherlibs.sh
+++ b/tools/do_gatherlibs.sh
@@ -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
 
-- 
GitLab