From dc92461a1d4649cdc3433ea0614af3dbe8efa5e2 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 2 Jun 2011 14:27:59 +0200 Subject: [PATCH] sde-build: changed .so symlink correction to use relative_path() --- lib/functions.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/functions.in b/lib/functions.in index 8717eee..ee4380e 100644 --- a/lib/functions.in +++ b/lib/functions.in @@ -452,7 +452,8 @@ postflist_static_lib() { ;; *.so) if [ -L "$ffn" ]; then - ln -svf "../../lib/$( readlink "$ffn" )" "$ffn2" + local dfn=$(relative_path $(readlink -f "$ffn") "$ffn2") + ln -svnf "$dfn" "$ffn2" rm -f "$ffn" fi ;;