Lines 427-435
compile_lvm() {
Link Here
|
427 |
apply_patches lvm ${LVM_VER} |
427 |
apply_patches lvm ${LVM_VER} |
428 |
print_info 1 'lvm: >> Configuring...' |
428 |
print_info 1 'lvm: >> Configuring...' |
429 |
LDFLAGS="-L${TEMP}/device-mapper/lib" \ |
429 |
LDFLAGS="-L${TEMP}/device-mapper/lib" \ |
430 |
CFLAGS="-I${TEMP}/device-mapper/include" \ |
430 |
CFLAGS="-fPIC -I${TEMP}/device-mapper/include" \ |
431 |
CPPFLAGS="-I${TEMP}/device-mapper/include" \ |
431 |
CPPFLAGS="-fPIC -I${TEMP}/device-mapper/include" \ |
432 |
./configure --enable-static_link --prefix=${TEMP}/lvm >> ${LOGFILE} 2>&1 || |
432 |
./configure --enable-static_link --prefix=${TEMP}/lvm \ |
|
|
433 |
--with-lvm1=none --with-clvmd=none --with-cluster=none \ |
434 |
--disable-readline --disable-selinux --with-mirrors=none \ |
435 |
--with-snapshots=none --with-pool=internal || \ |
433 |
gen_die 'Configure of lvm failed!' |
436 |
gen_die 'Configure of lvm failed!' |
434 |
print_info 1 'lvm: >> Compiling...' |
437 |
print_info 1 'lvm: >> Compiling...' |
435 |
compile_generic '' utils |
438 |
compile_generic '' utils |
Lines 506-511
compile_device_mapper() {
Link Here
|
506 |
[ ! -d "${DEVICE_MAPPER_DIR}" ] && |
509 |
[ ! -d "${DEVICE_MAPPER_DIR}" ] && |
507 |
gen_die "device-mapper directory ${DEVICE_MAPPER_DIR} invalid" |
510 |
gen_die "device-mapper directory ${DEVICE_MAPPER_DIR} invalid" |
508 |
cd "${DEVICE_MAPPER_DIR}" |
511 |
cd "${DEVICE_MAPPER_DIR}" |
|
|
512 |
CFLAGS="-fPIC" \ |
513 |
CPPFLAGS="-fPIC" \ |
509 |
./configure --prefix=${TEMP}/device-mapper --enable-static_link \ |
514 |
./configure --prefix=${TEMP}/device-mapper --enable-static_link \ |
510 |
--disable-selinux >> ${LOGFILE} 2>&1 || |
515 |
--disable-selinux >> ${LOGFILE} 2>&1 || |
511 |
gen_die 'Configuring device-mapper failed!' |
516 |
gen_die 'Configuring device-mapper failed!' |