diff options
Diffstat (limited to 'binary/static-gcc')
| -rwxr-xr-x | binary/static-gcc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/binary/static-gcc b/binary/static-gcc index c08f24b2..1e4ad0eb 100755 --- a/binary/static-gcc +++ b/binary/static-gcc | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | STATIC_GCC_AR=${STATIC_GCC_AR:-ar} | 3 | STATIC_GCC_AR=${STATIC_GCC_AR:-ar} |
| 4 | STATIC_GCC_RANLIB=${STATIC_GCC_RANLIB:-ranlib} | 4 | STATIC_GCC_RANLIB=${STATIC_GCC_RANLIB:-ranlib} |
| 5 | STATIC_GCC_CC=${STATIC_GCC_CC:-gcc} | 5 | STATIC_GCC_CC=${STATIC_GCC_CC:-gcc} |
| 6 | STATIC_GCC_LIBDIR=${STATIC_GCC_LIBDIR:-/usr/lib} | ||
| 7 | 6 | ||
| 8 | DIR="$( cd "$( dirname "$0" )" && pwd )" | 7 | DIR="$( cd "$( dirname "$0" )" && pwd )" |
| 9 | 8 | ||
| @@ -18,7 +17,7 @@ allargs=() | |||
| 18 | sources=() | 17 | sources=() |
| 19 | objects=() | 18 | objects=() |
| 20 | etc=() | 19 | etc=() |
| 21 | libdirs=("$STATIC_GCC_LIBDIR") | 20 | libdirs=($("$STATIC_GCC_CC" -print-search-dirs | grep libraries | cut -d= -f2 | tr ':' '\n')) |
| 22 | incdirs=() | 21 | incdirs=() |
| 23 | 22 | ||
| 24 | linking=0 | 23 | linking=0 |
