Skip to content

Instantly share code, notes, and snippets.

View animulay's full-sized avatar

Aniruddha Mulay animulay

View GitHub Profile
@animulay
animulay / building-seastar-on-ubuntu-22-04.md
Last active May 15, 2025 02:48
Building scylladb/seastar on Ubuntu 22.04

Seastar is a modern C++ framework for building highly scalable event-driven asynchronous applications.

As of this writing, the accompanying Dockerfile builds the Seastar library on Ubuntu 24.10.

The README.md doesn't refer to any specific Linux distro and release.

To build Seastar on Ubuntu 22.04 (LTS):

The default gcc compiler version is gcc 11.4.0 and it does not support C++20 (required for building Seastar).

@animulay
animulay / cpp-hardening-compiler-options.txt
Created April 2, 2025 18:12
Compiler & linker options for hardening C++ code
#
# Recommended options for the GNU Compiler Collection (GCC) and Clang/LLVM
# https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html
#
-O2 -Wall -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough \
-Werror=format-security \
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 \
-D_GLIBCXX_ASSERTIONS \
-fstrict-flex-arrays=3 \