iglunix/base/libelf/build.sh

48 lines
773 B
Bash
Raw Normal View History

2022-04-18 21:23:05 +00:00
pkgname=libelf
pkgver=0.186
2022-04-21 20:56:09 +00:00
auto_cross
2022-04-18 21:23:05 +00:00
fetch() {
curl -LO "https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2"
tar -xf elfutils-$pkgver.tar.bz2
cd elfutils-$pkgver
patch -p1 < ../../musl.patch
}
2022-04-21 20:56:09 +00:00
if [ -z "$FOR_CROSS" ]; then
PREFIX=/usr
else
PREFIX=$FOR_CROSS_DIR
fi
2022-04-18 21:23:05 +00:00
build() {
cd elfutils-$pkgver
2022-04-21 20:56:09 +00:00
export CFLAGS="$CFLAGS -Wno-error"
2022-04-18 21:23:05 +00:00
./configure \
2022-04-21 20:56:09 +00:00
--prefix=$PREFIX \
2022-04-18 21:23:05 +00:00
--sysconfdir=/etc \
2022-04-21 20:56:09 +00:00
--build=$HOST_TRIPLE \
2022-04-18 21:23:05 +00:00
--host=$TRIPLE \
--disable-symbol-versioning \
--disable-debuginfod \
--disable-libdebuginfod \
--disable-nls \
ac_cv_c99=yes
bad --gmake gmake -C lib
bad --gmake gmake -C libelf
}
package() {
cd elfutils-$pkgver
bad --gmake gmake -C libelf install DESTDIR=$pkgdir
}
backup() {
return
}
license() {
return
}