Skip to content

Commit f06c6e1

Browse files
committed
guix: build for Linux HOSTS with -static-libgcc
1 parent 1bdf469 commit f06c6e1

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

contrib/guix/libexec/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ esac
231231

232232
# EXE FLAGS
233233
case "$HOST" in
234-
*linux*) CMAKE_EXE_LINKER_FLAGS="-DCMAKE_EXE_LINKER_FLAGS=${HOST_LDFLAGS} -static-libstdc++" ;;
234+
*linux*) CMAKE_EXE_LINKER_FLAGS="-DCMAKE_EXE_LINKER_FLAGS=${HOST_LDFLAGS} -static-libstdc++ -static-libgcc" ;;
235235
esac
236236

237237
mkdir -p "$DISTSRC"

contrib/guix/symbol-check.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,25 @@
1616

1717
# Debian 11 (Bullseye) EOL: 2026. https://wiki.debian.org/LTS
1818
#
19-
# - libgcc version 10.2.1 (https://packages.debian.org/bullseye/libgcc-s1)
2019
# - libc version 2.31 (https://packages.debian.org/source/bullseye/glibc)
2120
#
2221
# Ubuntu 20.04 (Focal) EOL: 2030. https://wiki.ubuntu.com/ReleaseTeam
2322
#
24-
# - libgcc version 10.5.0 (https://packages.ubuntu.com/focal/libgcc1)
2523
# - libc version 2.31 (https://packages.ubuntu.com/focal/libc6)
2624
#
2725
# CentOS Stream 9 EOL: 2027. https://www.centos.org/cl-vs-cs/#end-of-life
2826
#
29-
# - libgcc version 12.2.1 (https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/)
3027
# - libc version 2.34 (https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/)
3128
#
32-
# See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html for more info.
3329

3430
MAX_VERSIONS = {
35-
'GCC': (7,0,0),
3631
'GLIBC': {
3732
lief.ELF.ARCH.X86_64: (2,31),
3833
lief.ELF.ARCH.ARM: (2,31),
3934
lief.ELF.ARCH.AARCH64:(2,31),
4035
lief.ELF.ARCH.PPC64: (2,31),
4136
lief.ELF.ARCH.RISCV: (2,31),
4237
},
43-
'LIBATOMIC': (1,0),
4438
'V': (0,5,0), # xkb (bitcoin-qt only)
4539
}
4640

@@ -93,11 +87,9 @@
9387
# Allowed NEEDED libraries
9488
ELF_ALLOWED_LIBRARIES = {
9589
# bitcoind and bitcoin-qt
96-
'libgcc_s.so.1', # GCC base support
9790
'libc.so.6', # C library
9891
'libpthread.so.0', # threading
9992
'libm.so.6', # math library
100-
'libatomic.so.1',
10193
'ld-linux-x86-64.so.2', # 64-bit dynamic linker
10294
'ld-linux.so.2', # 32-bit dynamic linker
10395
'ld-linux-aarch64.so.1', # 64-bit ARM dynamic linker

0 commit comments

Comments
 (0)