summaryrefslogtreecommitdiff
path: root/data/gdb/make.sh
blob: 022713a681822989f718b00606dd5feab5d93316 (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
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"
pkg: rm -rf /usr/share/locale