summaryrefslogtreecommitdiff
path: root/core/elfutils/PKGBUILD
blob: 7f7584dbb111f1433c0876b554d599523b3eb17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
eval "$(
  declare -f build | \
    sed '
      /^\s*CFLAGS+=/{
        a\
    export CFLAGS=${CFLAGS/-fno-plt}\
    export CXXFLAGS=${CXXFLAGS/-fno-plt}
      }
    '
)"

# backport from git://sourceware.org/git/elfutils.git
source+=(elfutils-backtrace-test-printf-fix.patch)
sha1sums+=('c14beffa1fcd1116ae9c388ebba16cf3f668da92')

prepare() {
  cd ${pkgbase}-${pkgver}
  patch -Np1 -i "$srcdir/elfutils-backtrace-test-printf-fix.patch"
}