summaryrefslogtreecommitdiff
path: root/src/check-libstdc++.sh
blob: 8b59dbab75bfc962cb868c792c882aaf6e0cc25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

export LC_ALL=C

LDD=ldd
GREP=grep

for cxxlib in 'libstdc++' 'libc++'; do
    if $LDD .libs/libvte-$VTE_API_VERSION.so | $GREP "$cxxlib" &>/dev/null; then
        echo "FAIL: libvte-$VTE_API_VERSION.so is linked to $cxxlib"
        exit 1
    fi
done

exit 0