blob: cf17845ad08d462bc8de048f6c57ef60cb9a0b06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# no LTO on i486
if [ "$CARCH" = 'i486' ]; then
sed -i '
1i options=(!lto)
' PKGBUILD
fi
if [ "$CARCH" == 'i486' ]; then
eval "$(
declare -f build | \
sed '
s/-ffat-lto-objects//g
'
)"
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
'
)"
|