From b7e423dfc05bcb0893dbbb7869e1767ed4742ff5 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 5 Sep 2024 11:44:58 +0200 Subject: extra/boost: setting BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK for IA32 to ignore memory leaks in stackstrace --- extra/boost/PKGBUILD | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extra/boost/PKGBUILD b/extra/boost/PKGBUILD index 12fb68df..cf17845a 100644 --- a/extra/boost/PKGBUILD +++ b/extra/boost/PKGBUILD @@ -12,3 +12,12 @@ if [ "$CARCH" == 'i486' ]; then ' )" fi + +# disable complaining about stack trace feature which leaks memory +eval "$( + declare -f build | \ + sed ' + s/cflags="\([^"]*\)"/cflags="\1 -DBOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK"/g + s/cxxflags="\([^"]*\)"/cxxflags="\1 -DBOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK"/g + ' +)" -- cgit v1.2.3-70-g09d2