diff options
Diffstat (limited to 'extra/libelf/build')
-rwxr-xr-x | extra/libelf/build | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/libelf/build b/extra/libelf/build new file mode 100755 index 00000000..7bade69a --- /dev/null +++ b/extra/libelf/build @@ -0,0 +1,21 @@ +#!/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. +make -C lib +make -C libelf +make -C libelf DESTDIR="$1" install |