cc-wrapper: Fix adding directories to rpath

This fixes a bug introduced in #27831: `for path in "$dir"/lib*.so` assumed that
all libs match `lib*.so`, but 07674788d6 started
adding libs that match `*.so` and `*.so.*`.
This commit is contained in:
Orivej Desh 2017-08-07 15:06:44 +00:00 committed by Robin Gloster
parent 3e981b9e33
commit c8f7f18e69

View File

@ -129,7 +129,7 @@ if [ "$NIX_@infixSalt@_DONT_SET_RPATH" != 1 ]; then
# copied to $out/lib. If not, we're screwed.
continue
fi
for path in "$dir"/lib*.so; do
for path in "$dir"/*; do
file="${path##*/}"
if [ "${libs[$file]:-}" ]; then
libs["$file"]=