diff options
Diffstat (limited to 'helper')
| -rw-r--r-- | helper/system.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helper/system.inc b/helper/system.inc index 2e619a3c..0cfcfbc6 100644 --- a/helper/system.inc +++ b/helper/system.inc @@ -5,7 +5,8 @@ # please try not to use this to find/fetch libs in /lib or /usr/lib. # Use ARCH_LIB_DIR, like "$ARCH_LIB_DIR/somefile.so" or "/usr$ARCH_LIB_DIR/somefile.so" ARCH_TRIPLET=$(ldd $SHELL|grep "libc.so" | awk -F "/" '{print $3}') -[ -z "$ARCH_TRIPLET" ] && pwarning "Could not determine arch triplet." +#[ -z "$ARCH_TRIPLET" ] && pwarning "Could not determine arch triplet." +[[ $ARCH_TRIPLET == *\(*\) ]] && ARCH_TRIPLET="" ARCH_LIB_DIR=$(ldd $SHELL | grep "libc.so" | sed -r 's#^.*(/lib.*)/libc.so.*$#\1#g') [ -z "$ARCH_LIB_DIR" -o ! -d "$ARCH_LIB_DIR" ] && perror "Could not determine arch dependent lib dir (where libc.so resides)" |
