summaryrefslogtreecommitdiff
path: root/data/gdb/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/gdb/make.sh')
-rw-r--r--data/gdb/make.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/gdb/make.sh b/data/gdb/make.sh
new file mode 100644
index 000000000..86a29857b
--- /dev/null
+++ b/data/gdb/make.sh
@@ -0,0 +1,17 @@
+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"