libelf: fix cross
This commit is contained in:
parent
ac48f1b27c
commit
302a3e773a
1 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
pkgname=libelf
|
pkgname=libelf
|
||||||
pkgver=0.186
|
pkgver=0.186
|
||||||
|
auto_cross
|
||||||
|
|
||||||
fetch() {
|
fetch() {
|
||||||
curl -LO "https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2"
|
curl -LO "https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2"
|
||||||
|
@ -8,13 +9,19 @@ fetch() {
|
||||||
patch -p1 < ../../musl.patch
|
patch -p1 < ../../musl.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ -z "$FOR_CROSS" ]; then
|
||||||
|
PREFIX=/usr
|
||||||
|
else
|
||||||
|
PREFIX=$FOR_CROSS_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd elfutils-$pkgver
|
cd elfutils-$pkgver
|
||||||
export CFLAGS="$(CFLAGS) -Wno-error"
|
export CFLAGS="$CFLAGS -Wno-error"
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=$PREFIX \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--build=$TRIPLE \
|
--build=$HOST_TRIPLE \
|
||||||
--host=$TRIPLE \
|
--host=$TRIPLE \
|
||||||
--disable-symbol-versioning \
|
--disable-symbol-versioning \
|
||||||
--disable-debuginfod \
|
--disable-debuginfod \
|
||||||
|
|
Loading…
Reference in a new issue