Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/tbb/PKGBUILD
blob: f2ff0000062ccbafa4e58318c2a0d41170ce439f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# disable waitpkg extensions (error is inline failing in _tpause)
# (see https://github.com/oneapi-src/oneTBB/issues/370 and
# https://github.com/oneapi-src/oneTBB/pull/609/commits/542a27fa1cfafaf76772e793549d9f4d288d03a9)
source+=('oneTBB-2021.5.0-no-waitpkg.patch')
sha512sums+=('0050970336052909d0572514bb88b8ca12210224bec1245f1c05423f1a8e6e28a5048cc06f969efd81f2de14d342f69641cdfbf9f82ad8e41ca618ae4ce16f16')
eval "$(
  {
    declare -f prepare || \
    printf 'prepare() { cd ${srcdir}/oneTBB-${pkgver}\n}\n'
  } \
  | sed '
    $i patch -p1 -i "$srcdir/oneTBB-2021.5.0-no-waitpkg.patch"
  '
)"

# -latomic on i486
if [ "$CARCH" == 'i486' ]; then
  eval "$(
    declare -f build | \
      sed '
        s/cmake /cmake -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic /
      '
  )"
fi