[build] Remove CXX11 flag

No longer needed after we vendorized so many deps.
This commit is contained in:
Thiago Marcos P. Santos
2019-09-10 23:13:32 +03:00
parent 92b3386dec
commit 102a07cc63
6 changed files with 1 additions and 46 deletions

Binary file not shown.

View File

@@ -1,21 +0,0 @@
#!/usr/bin/env bash
set -e
set -o pipefail
if ! [ `uname -s` = 'Linux' ] || \
! command -v readelf > /dev/null || \
! command -v c++filt > /dev/null; then
echo -n "OFF"
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)
if [ $(readelf -Ws $LIBSTDCPP |c++filt |grep -c ::__cxx11::) -gt 0 ]; then
echo -n "ON"
else
echo -n "OFF"
fi