From 954902a8496d8cbddbd650c87bd5ff9f3e6c1deb Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 12 Jan 2021 15:52:10 +0300 Subject: libelf: move to extra --- extra/libelf/build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 extra/libelf/build (limited to 'extra/libelf/build') 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 -- cgit v1.2.3