Skip to content

Commit b77d5ad

Browse files
laanwjfanquake
authored andcommitted
build: Disallow dynamic linking against c++ library
Ever since statically linking Qt, we've been linking the C++ library statically too (-static-libstdc++). Take this into account in the symbol checker.
1 parent a6f5b6f commit b77d5ad

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

contrib/devtools/symbol-check.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
'''
66
A script to check that the (Linux) executables produced by gitian only contain
7-
allowed gcc, glibc and libstdc++ version symbols. This makes sure they are
8-
still compatible with the minimum supported Linux distribution versions.
7+
allowed gcc and glibc version symbols. This makes sure they are still compatible
8+
with the minimum supported Linux distribution versions.
99
1010
Example usage:
1111
@@ -20,25 +20,20 @@
2020
#
2121
# - g++ version 4.4.5 (https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=g%2B%2B)
2222
# - libc version 2.11.3 (https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=libc6)
23-
# - libstdc++ version 4.4.5 (https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=libstdc%2B%2B6)
2423
#
2524
# Ubuntu 10.04.4 (Lucid Lynx) has:
2625
#
2726
# - g++ version 4.4.3 (http://packages.ubuntu.com/search?keywords=g%2B%2B&searchon=names&suite=lucid&section=all)
2827
# - libc version 2.11.1 (http://packages.ubuntu.com/search?keywords=libc6&searchon=names&suite=lucid&section=all)
29-
# - libstdc++ version 4.4.3 (http://packages.ubuntu.com/search?suite=lucid&section=all&arch=any&keywords=libstdc%2B%2B&searchon=names)
3028
#
3129
# Taking the minimum of these as our target.
3230
#
3331
# According to GNU ABI document (http://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html) this corresponds to:
3432
# GCC 4.4.0: GCC_4.4.0
35-
# GCC 4.4.2: GLIBCXX_3.4.13, CXXABI_1.3.3
3633
# (glibc) GLIBC_2_11
3734
#
3835
MAX_VERSIONS = {
3936
'GCC': (4,4,0),
40-
'CXXABI': (1,3,3),
41-
'GLIBCXX': (3,4,13),
4237
'GLIBC': (2,11),
4338
'LIBATOMIC': (1,0)
4439
}

0 commit comments

Comments
 (0)