summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-09-02 21:53:38 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2017-09-02 21:53:38 -0700
commita1052148144e0fd22cd702e41e9db217900c0fac (patch)
treec0ba6fe7ae1bbe0423619556aa045012e406b663
parentBump version to 3.5.2.0 (diff)
downloadgenkernel-a1052148144e0fd22cd702e41e9db217900c0fac.tar.gz
genkernel-a1052148144e0fd22cd702e41e9db217900c0fac.tar.bz2
genkernel-a1052148144e0fd22cd702e41e9db217900c0fac.zip
gen_compile: make LVM configure options easier to patch.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xgen_compile.sh26
1 files changed, 18 insertions, 8 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index 7df01546..30d5299c 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -500,14 +500,24 @@ compile_lvm() {
cd "${LVM_DIR}"
apply_patches lvm ${LVM_VER}
print_info 1 'lvm: >> Configuring...'
- CFLAGS="-fPIC" \
- ./configure --enable-static_link --prefix=/ \
- --enable-dmeventd --enable-cmdlib \
- --with-lvm1=internal --with-clvmd=none --with-cluster=none \
- --disable-readline --disable-selinux --with-mirrors=internal \
- --with-snapshots=internal --with-pool=internal \
- >> ${LOGFILE} 2>&1 || \
- gen_die 'Configure of lvm failed!'
+ LVM_CONF=(
+ --enable-static_link
+ --prefix=/
+ --enable-dmeventd
+ --enable-cmdlib
+ --with-lvm1=internal
+ --with-clvmd=none
+ --with-cluster=none
+ --disable-readline
+ --disable-selinux
+ --with-mirrors=internal
+ --with-snapshots=internal
+ --with-pool=internal
+ )
+ CFLAGS="-fPIC" \
+ ./configure "${LVM_CONF[@]}" \
+ >> ${LOGFILE} 2>&1 || \
+ gen_die 'Configure of lvm failed!'
print_info 1 'lvm: >> Compiling...'
compile_generic '' utils || gen_die "failed to build LVM"
mkdir -p "${TEMP}/lvm/sbin"