summaryrefslogtreecommitdiff
path: root/extra/mpd/PKGBUILD
blob: 8b3eca20d7ba4fff068440d8c932cc2de19be742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -latomc for i486
if [ "$CARCH" = 'i486' ]; then
  eval "$(
    declare -f build | \
      sed '
        /meson/ i LDFLAGS+=" -latomic"
      '
  )"  
fi

# disabling LTO on i486
if [ "${CARCH}" = "i486" ]; then
  eval "$(
    declare -f build | \
      sed '
        /local _meson_options.*/ a \
          _meson_options+=(-Db_lto=false)
      '
  )"
fi