Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/boost
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-09-05 11:44:58 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2024-09-05 11:44:58 +0200
commitb7e423dfc05bcb0893dbbb7869e1767ed4742ff5 (patch)
tree52c5846b3fe32af09aa554b10efd5250aff5ecbf /extra/boost
parentf720cf1a891c9b57d5ea858d1b8183ebc23dd79b (diff)
extra/boost: setting BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK for IA32 to ignore memory leaks in stackstrace
Diffstat (limited to 'extra/boost')
-rw-r--r--extra/boost/PKGBUILD9
1 files changed, 9 insertions, 0 deletions
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
+ '
+)"