From a5b1d11e8de551ec17c90263256ee9b161d0d9d4 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 2 Jun 2011 14:42:11 +0200 Subject: [PATCH] sde-build: fix postflist_static_lib() to not use readlink -f preserving the original target of the link --- lib/functions.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/functions.in b/lib/functions.in index ee4380e..374bff9 100644 --- a/lib/functions.in +++ b/lib/functions.in @@ -452,7 +452,8 @@ postflist_static_lib() { ;; *.so) if [ -L "$ffn" ]; then - local dfn=$(relative_path $(readlink -f "$ffn") "$ffn2") + local dfn="${ffn%/*}/$(readlink "$ffn")" + dfn=$(relative_path "$dfn" "$ffn2") ln -svnf "$dfn" "$ffn2" rm -f "$ffn" fi