Merge pull request #7430 from newbluemoon/libdwarf
libdwarf: fix cross-compilation
This commit is contained in:
commit
e19b4ef822
1 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'libdwarf'
|
# Template build file for 'libdwarf'
|
||||||
pkgname=libdwarf
|
pkgname=libdwarf
|
||||||
version=20170709
|
version=20170709
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--prefix=/usr --enable-shared"
|
configure_args="--prefix=/usr --enable-shared"
|
||||||
short_desc="DWARF Debugging Information Format Library"
|
short_desc="DWARF Debugging Information Format Library"
|
||||||
|
@ -13,8 +13,15 @@ distfiles="http://prevanders.net/${pkgname}-${version}.tar.gz"
|
||||||
checksum=46ccfb24ecd24bd7cce466d67a7bfeb62b9ed405dafdc924918d58c529abccb8
|
checksum=46ccfb24ecd24bd7cce466d67a7bfeb62b9ed405dafdc924918d58c529abccb8
|
||||||
wrksrc="dwarf-${version}"
|
wrksrc="dwarf-${version}"
|
||||||
build_wrksrc="libdwarf"
|
build_wrksrc="libdwarf"
|
||||||
nocross="yes"
|
|
||||||
# XXX need to fix cross-compile
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
make_cmd="make HOSTCC=cc HOSTCFLAGS=-I./ HOSTLDFLAGS="
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
# Makefile doesn’t use $HOSTLDFLAGS when using $HOSTCC
|
||||||
|
sed -i -e 's|\$(HOSTCC) \$(HOSTCFLAGS) \$(LDFLAGS)|\$(HOSTCC) \$(HOSTCFLAGS) \$(HOSTLDFLAGS)|' Makefile
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -dm755 $DESTDIR/usr/lib
|
install -dm755 $DESTDIR/usr/lib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue