#!/bin/bash

./configure --prefix=/usr \
            --disable-debuginfod \
            --enable-libdebuginfod=dummy \
            --libdir=/lib

make

make -C libelf -j1 install
install -vm644 config/libelf.pc /usr/lib/pkgconfig
rm /lib/libelf.a