From 6bdb86a8efaf08c835b297e65f66a4cbfd722454 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 14 Jan 2011 17:37:31 +0100 Subject: [PATCH] Restore original intention of CPPFLAGS (preprocessor) and CFLAGS (compiler) --- gen_compile.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gen_compile.sh b/gen_compile.sh index 638f3c4..9fe1e1f 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -427,8 +427,8 @@ compile_lvm() { apply_patches lvm ${LVM_VER} print_info 1 'lvm: >> Configuring...' LDFLAGS="-L${TEMP}/device-mapper/lib" \ - CFLAGS="-fPIC -I${TEMP}/device-mapper/include" \ - CPPFLAGS="-fPIC -I${TEMP}/device-mapper/include" \ + CFLAGS="-fPIC" \ + CPPFLAGS="-I${TEMP}/device-mapper/include" \ ./configure --enable-static_link --prefix=${TEMP}/lvm \ --with-lvm1=none --with-clvmd=none --with-cluster=none \ --disable-readline --disable-selinux --with-mirrors=none \ @@ -510,7 +510,6 @@ compile_device_mapper() { gen_die "device-mapper directory ${DEVICE_MAPPER_DIR} invalid" cd "${DEVICE_MAPPER_DIR}" CFLAGS="-fPIC" \ - CPPFLAGS="-fPIC" \ ./configure --prefix=${TEMP}/device-mapper --enable-static_link \ --disable-selinux >> ${LOGFILE} 2>&1 || gen_die 'Configuring device-mapper failed!' -- 2.26.2