sed Makefile instead of setting in env
authoragaffney <agaffney@kagome.(none)>
Thu, 13 Nov 2008 00:34:56 +0000 (18:34 -0600)
committeragaffney <agaffney@kagome.(none)>
Thu, 13 Nov 2008 00:34:56 +0000 (18:34 -0600)
gen_compile.sh

index be6220dbbcb9d4697a7b32acfebd25826c7f750e..2245f7596e539e19ae34961782954d47db1e5c02 100644 (file)
@@ -567,7 +567,8 @@ compile_unionfs_fuse() {
                tar -zxpf "${FUSE_SRCTAR}"
                cd ..
                print_info 1 'unionfs-fuse: >> Compiling...'
-               CFLAGS="-Ifuse_tmp/${FUSE_DIR}/include" MAKE=${UTILS_MAKE} compile_generic "" ""
+               sed -i "/^CFLAGS/s:^\\(.*\\)$:\\1 -Ifuse_tmp/${FUSE_DIR}/include:" Makefile
+               MAKE=${UTILS_MAKE} compile_generic "" ""
                print_info 1 'unionfs-fuse: >> Copying to cache...'
                [ -f "${TEMP}/${UNIONFS_FUSE_DIR}/src/unionfs" ] ||
                        gen_die 'unionfs binary does not exist!'