diff options
author | Cem Keylan <cem@ckyln.com> | 2021-01-12 15:53:55 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-01-12 15:53:55 +0300 |
commit | edebbba4a616070887bad6bcd026eb94b609f1e4 (patch) | |
tree | d65050b4ddad1bb6111baa40d6304e2daa251da8 /extra/libdw/build | |
parent | 954902a8496d8cbddbd650c87bd5ff9f3e6c1deb (diff) | |
download | repository-edebbba4a616070887bad6bcd026eb94b609f1e4.tar.gz |
libdw: add new package at 0.182
Diffstat (limited to 'extra/libdw/build')
-rwxr-xr-x | extra/libdw/build | 35 |
1 files changed, 35 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" +) |