[build] Restrict C++11 ABI check script for Linux

This commit is contained in:
Bruno de Oliveira Abinader
2016-05-24 19:26:27 +03:00
parent 1f8de2be5c
commit 60bce7014b

View File

@@ -3,6 +3,11 @@
set -e
set -o pipefail
if [ ! `uname -s` = 'Linux' ]; then
echo ""
exit 0
fi
# check-cxx11abi.dat is a binary just so we can use the loader
# to take care of finding the libstdc++ which can be tricky.
LIBSTDCPP=$(ldd $(dirname $0)/check-cxx11abi.dat |grep libstdc++ |cut -d' ' -f3)