1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
#!/bin/sh _cc="${HOSTCC_REAL:-gcc}" case "$1" in -print-file-name=*) dirs="$($_cc -print-search-dirs | grep -m1 libraries | sed -e 's,:, ,' -e 's,.* =,,')" dirs="$dirs /usr/lib /usr/local/lib" find $dirs -name "${1#*=}" | head -n1 ;; *) exec $_cc "$@" ;; esac link rel='vcs-git' href='git://git.panaceas.org/openwrt/upstream' title='openwrt/upstream Git repository'/>