]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: enable backtrace by default on musl
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2025 14:11:14 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2025 14:25:47 +0000 (16:25 +0200)
commitf499fa3dcd24b5a17ed97842f5e867bd37739754
tree3b312ee83a9795021d6f5ba4f244c79b13bec032
parentbd1d02e2b373e3159d39776aaf5610157cf0e69e
BUILD: makefile: enable backtrace by default on musl

The reason musl builds was not producing exploitable backtraces was
that the toolchain used appears to automatically omit the frame pointer
at -O2 but leaves it at -O0. This patch just makes sure to always append
-fno-omit-frame-pointer to the BACKTRACE cflags and enables the option
with musl where it now works. This will allow us to finally get
exploitable traces from docker images where core dumps are not always
available.
Makefile