Skip to content

Commit

Permalink
try to ensure ABI compatibility with older glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Dec 27, 2024
1 parent 5fde1a3 commit c4db04c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assembly/native/build-ubuntu-appimages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 ..

Expand Down

0 comments on commit c4db04c

Please sign in to comment.