Restore original intention of CPPFLAGS (preprocessor) and CFLAGS (compiler)
authorSebastian Pipping <sebastian@pipping.org>
Fri, 14 Jan 2011 16:37:31 +0000 (17:37 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 14 Jan 2011 16:37:31 +0000 (17:37 +0100)
gen_compile.sh

index 638f3c4323aa586e4335e38f584f3f7089683328..9fe1e1f44f818102ea221cb1c06432ea460d3254 100755 (executable)
@@ -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!'