blob: 826b24050ec7f80fabb6ae0edaebf0b48c88eb51 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Alexander Drozdov <adrozdoff@gmail.com>
_target=aarch64-none-elf
pkgname=$_target-gdb
pkgver=13.2
pkgrel=1
pkgdesc='The GNU Debugger for the ARM64 Baremetal target'
arch=(i686 x86_64)
url='https://www.gnu.org/software/gdb/'
license=(GPL3)
depends=('expat' 'gdb-common' 'guile' 'libelf' 'ncurses' 'mpfr' 'python' 'source-highlight' 'xz')
options=(!emptydirs)
source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig})
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
sha256sums=('fd5bebb7be1833abdb6e023c2f498a354498281df9d05523d8915babeb893f0a'
'SKIP')
prepare() {
cd "$srcdir/gdb-$pkgver"
[[ -d gdb-build ]] && rm -rf gdb-build
mkdir gdb-build
#sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}
build() {
cd "$srcdir/gdb-$pkgver/gdb-build"
unset LDFLAGS
export CFLAGS="-O2 -pipe"
#export CXXFLAGS="-O2 -pipe"
export CPPFLAGS="-O2 -pipe"
export CXXFLAGS="-fpermissive -O2 -pipe"
../configure \
--target=$_target \
--prefix=/usr \
--enable-languages=c,c++ \
--disable-multilib \
--enable-interwork \
--enable-tui \
--with-system-readline \
--enable-source-highlight \
--disable-nls \
--with-python=/usr/bin/python \
--with-guile \
--disable-werror
make
}
package() {
cd "$srcdir/gdb-$pkgver/gdb-build"
make DESTDIR="$pkgdir" install
# Following files conflict with 'gdb' package
rm -r ${pkgdir}/usr/share/info
rm -r ${pkgdir}/usr/share/man
rm -r ${pkgdir}/usr/share/gdb/
rm -r ${pkgdir}/usr/include/gdb
rm -r ${pkgdir}/usr/include/sim
}
|