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:
parent
6bacb66dd3
commit
193f70d887
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue