repo.or.cz
/
openwrt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rpcd: iwinfo plugin fixes
[openwrt.git]
/
scripts
/
clang-gcc-wrapper
blob
9e668418a9148f3e18e92c7ba56b7df13b8ce93b
1
#!/bin/sh
2
_cc
=
"
${HOSTCC_REAL:-gcc}
"
3
case
"
$1
"
in
4
-print-file-name
=*)
5
dirs
=
"$(
$_cc
-print-search-dirs | grep -m1 libraries | sed -e 's,:, ,' -e 's,.* =,,')"
6
dirs
=
"
$dirs
/usr/lib /usr/local/lib"
7
find
$dirs
-name
"
${1#*=}
"
|
head
-n1
8
;;
9
*)
10
exec
$_cc
"$@"
11
;;
12
esac