diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-04 12:42:39 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-04 18:17:53 -0300 |
commit | 60d25503ffab71314342f10ffd3d1d8be4eef9f9 (patch) | |
tree | 7d657c98e9e1fad55da5fefd7a38c3c8bbdef3f8 /binary/static-gcc | |
parent | b8d84a0b130622e16ab0e37c3c43d9844434a5c5 (diff) | |
download | luarocks-60d25503ffab71314342f10ffd3d1d8be4eef9f9.tar.gz luarocks-60d25503ffab71314342f10ffd3d1d8be4eef9f9.tar.bz2 luarocks-60d25503ffab71314342f10ffd3d1d8be4eef9f9.zip |
binary: derive library search paths; minor Windows fix
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 |