diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-07-13 14:28:46 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-07-13 14:28:46 +0000 |
commit | e6c48b3f09a0c912bfc28fd1c0ff08d0b955b23d (patch) | |
tree | 19b6c1f7fdb98d45964000cb782cdbe9d0faba3a /main/lvm2/APKBUILD | |
parent | 5bbf5b09d54bd07326073359e8693bd563e6876e (diff) | |
download | aports-e6c48b3f09a0c912bfc28fd1c0ff08d0b955b23d.tar.bz2 aports-e6c48b3f09a0c912bfc28fd1c0ff08d0b955b23d.tar.xz |
main/lvm2: support cross building
Diffstat (limited to 'main/lvm2/APKBUILD')
-rw-r--r-- | main/lvm2/APKBUILD | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD index c39b402480..d57b03c05a 100644 --- a/main/lvm2/APKBUILD +++ b/main/lvm2/APKBUILD @@ -8,7 +8,9 @@ arch="all" license="GPL" depends= depends_dev="linux-headers" -makedepends="$depends_dev coreutils" +makedepends_build="coreutils" +makedepends_host="$depends_dev" +makedepends="$makedepends_build $makedepends_host" source="ftp://sources.redhat.com/pub/$pkgname/LVM2.$pkgver.tgz fix-stdio-usage.patch mallinfo.patch @@ -35,6 +37,10 @@ prepare() { build () { cd "$_builddir" + # during cross-compilation malloc test goes wrong + export ac_cv_func_malloc_0_nonnull=yes + export ac_cv_func_realloc_0_nonnull=yes + ./configure \ --build=$CBUILD \ --host=$CHOST \ |