From: agaffney Date: Thu, 13 Nov 2008 00:34:56 +0000 (-0600) Subject: sed Makefile instead of setting in env X-Git-Tag: v3.4.10.902~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05ab15750d99573d01b06f2497884864d0f0254e;p=genkernel.git sed Makefile instead of setting in env --- diff --git a/gen_compile.sh b/gen_compile.sh index be6220d..2245f75 100644 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -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!'