summaryrefslogtreecommitdiff
path: root/data/gdb/make.sh
blob: d6a7b335ea12713a79ab0905a93ee14bbbab2db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
shopt -s extglob
pkg:setup
cd src/gdb
autoconf
cd ../..
cd ..
mkdir build
cd build
PKG_CONF=$(echo ../!(build)/src/configure) pkg:configure
pkg:make
# XXX: do I really need DSTROOT?
pkg:install DSTROOT="${PKG_DEST}"
for bin in ar nm ranlib size strings strip; do
    pkg: rm -f "/usr/bin/${bin}"
done
pkg: rm -f /usr/lib/libiberty.a
ldid -S"${PKG_DATA}/gdb.xml" "${PKG_DEST}/usr/bin/gdb"{,server}
pkg: rm -rf /usr/share/locale