Skip to content

Commit bcab124

Browse files
doughera88iabyn
authored andcommitted
collapse plibpth to one line and remove trailing /
The recent change to hints/linux.sh, 40f0262 set the plibpth variable. It was supposed to set all entries on a single line, but it didn't. Do it now, and also remove trailing /'s. (The collapsing is a more robust version of the previous commit, since reverted, that davem wrote independently).
1 parent eabaae2 commit bcab124

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hints/linux.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,10 @@ esac
164164
# plibpth to bypass this check.
165165
case "$plibpth" in
166166
'') plibpth=`gcc -print-search-dirs | grep libraries |
167-
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc'`
168-
plibpth="$plibpth" # Collapse all entries on one line
167+
cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
168+
set X $plibpth # Collapse all entries on one line
169+
shift
170+
plibpth="$*"
169171
;;
170172
esac
171173

0 commit comments

Comments
 (0)