mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
try to ensure ABI compatibility with older glibc
This commit is contained in:
parent
5fde1a35f2
commit
c4db04c72b
1 changed files with 6 additions and 1 deletions
|
@ -39,8 +39,11 @@ else
|
|||
echo "Using compiled openssl_3"
|
||||
fi
|
||||
|
||||
echo libstdc++.so.6 supported GLIBC
|
||||
strings /lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC
|
||||
|
||||
cmake -GNinja .. \
|
||||
-DCMAKE_CXX_FLAGS="-stdlib=libc++ -I/usr/lib/llvm-16/include/c++/v1" \
|
||||
-DCMAKE_CXX_FLAGS="-stdlib=libc++ -I/usr/lib/llvm-16/include/c++/v1 -D_GLIBCXX_USE_CXX11_ABI=0" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ -static-libgcc -static-libstdc++ /usr/lib/llvm-16/lib/libc++abi.a -I/usr/lib/llvm-16/include/c++/v1" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DPORTABLE=1 \
|
||||
|
@ -84,6 +87,8 @@ echo libtonlibjson.so
|
|||
ldd ./tonlib/libtonlibjson.so.0.5 || exit 1
|
||||
echo libemulator.so
|
||||
ldd ./emulator/libemulator.so || exit 1
|
||||
echo libstdc++.so.6
|
||||
strings /lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC
|
||||
|
||||
cd ..
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue