3
0
Fork 0
forked from mirrors/nixpkgs

Updating the ld-wrapper about linking of direct .so files. The previous

regexp looking for such ld arguments did not work well with "--soname=xxx.so".
Now I added the condition that the argument should not start with a hyphen, for
it to be possibly considered a .so file to link with.


svn path=/nixpkgs/branches/stdenv-updates/; revision=18919
This commit is contained in:
Lluís Batlle i Rossell 2009-12-13 16:18:53 +00:00
parent 6bacb66dd3
commit 193f70d887

View file

@ -81,7 +81,7 @@ if test "$NIX_DONT_SET_RPATH" != "1"; then
elif test "$p" = "-L"; then
addToLibPath ${p2}
n=$((n + 1))
elif $(echo "$p" | grep -q '\.so\($\|\.\)'); then
elif $(echo "$p" | grep -q '^[^-].*\.so\($\|\.\)'); then
path="$(dirname "$p")";
addToLibPath "${path}"
fi
@ -116,7 +116,7 @@ if test "$NIX_DONT_SET_RPATH" != "1"; then
# I haven't seen `-l foo', but you never know...
addToRPath $i
break
elif $(echo "$p" | grep -q '\.so\($\|\.\)'); then
elif $(echo "$p" | grep -q '^[^-].*\.so\($\|\.\)'); then
path="$(dirname "$p")";
if test "$path" == "$i"; then
addToRPath $i