aboutsummaryrefslogtreecommitdiff
path: root/extra/libdw
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libdw')
-rwxr-xr-xextra/libdw/build35
l---------extra/libdw/checksums1
-rw-r--r--extra/libdw/depends4
l---------extra/libdw/files/error.h1
l---------extra/libdw/sources1
l---------extra/libdw/version1
6 files changed, 43 insertions, 0 deletions
diff --git a/extra/libdw/build b/extra/libdw/build
new file mode 100755
index 00000000..6f9a77c9
--- /dev/null
+++ b/extra/libdw/build
@@ -0,0 +1,35 @@
+#!/bin/sh -e
+
+# Build sometimes forces -Werror.
+export CFLAGS="$CFLAGS -Wno-error"
+
+# Disable configure error for missing argp.
+sed -i 's/as_fn_error.*libargp/: "/g' configure
+
+# Don't compile two unrelated C files which require argp.
+sed -i 's/color.*printversion../#/g' lib/Makefile.in
+
+./configure \
+ --prefix=/usr \
+ --disable-symbol-versioning \
+ --disable-debuginfod \
+ --disable-nls
+
+# Skip the default make target and build only what we need.
+for dep in lib libelf backends libebl libcpu libdwelf libdwfl; do
+ make -C "$dep"
+done
+make -C libdw libdw.a
+
+(
+cd libebl
+install -Dm644 libebl.h "$1/usr/include/elfutils/libebl.h"
+install -Dm644 libebl.a "$1/usr/lib/libebl.a"
+)
+
+(
+cd libdw
+install -Dm644 libdw.h "$1/usr/include/elfutils/libdw.h"
+install -Dm644 dwarf.h "$1/usr/include/dwarf.h"
+install -Dm644 libdw.a "$1/usr/lib/libdw.a"
+)
diff --git a/extra/libdw/checksums b/extra/libdw/checksums
new file mode 120000
index 00000000..98f0f4c4
--- /dev/null
+++ b/extra/libdw/checksums
@@ -0,0 +1 @@
+../libelf/checksums \ No newline at end of file
diff --git a/extra/libdw/depends b/extra/libdw/depends
new file mode 100644
index 00000000..3ddd813d
--- /dev/null
+++ b/extra/libdw/depends
@@ -0,0 +1,4 @@
+argp
+musl-fts
+pkgconf make
+zlib
diff --git a/extra/libdw/files/error.h b/extra/libdw/files/error.h
new file mode 120000
index 00000000..d2e445ef
--- /dev/null
+++ b/extra/libdw/files/error.h
@@ -0,0 +1 @@
+../libelf/files/error.h \ No newline at end of file
diff --git a/extra/libdw/sources b/extra/libdw/sources
new file mode 120000
index 00000000..e84af20b
--- /dev/null
+++ b/extra/libdw/sources
@@ -0,0 +1 @@
+../libelf/sources \ No newline at end of file
diff --git a/extra/libdw/version b/extra/libdw/version
new file mode 120000
index 00000000..a0a3e1df
--- /dev/null
+++ b/extra/libdw/version
@@ -0,0 +1 @@
+../libelf/version \ No newline at end of file