Skip to content
Snippets Groups Projects
Commit e6c48b3f authored by Timo Teräs's avatar Timo Teräs
Browse files

main/lvm2: support cross building

parent 5bbf5b09
No related merge requests found
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment