Files
MapLibreParticleLab/scripts/check-cxx11abi.sh
Thiago Marcos P. Santos 4213dc53dc [Qt] Use C++11 ABI packages
These were causing linking errors on more recent Linux distros.

Fixes #3123.
2016-05-10 11:36:56 +03:00

15 lines
367 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
# 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 "-cxx11abi"
else
echo ""
fi