If the user has set make flags using MAKEFLAGS env var, they should
be used for all invocation of the make command.

Signed-off-by: Gaetan Nadon <[email protected]>
---
 build.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.sh b/build.sh
index 7c759c7..a532609 100755
--- a/build.sh
+++ b/build.sh
@@ -424,12 +424,12 @@ process() {
 
     # A custom 'make' target list was supplied through --cmd option
     if [ X"$MAKECMD" != X ]; then
-       ${MAKE} $MAKECMD
+       ${MAKE} $MAKEFLAGS $MAKECMD
        rtn=$?
        cd $old_pwd
 
        if [ $rtn -ne 0 ]; then
-           failed "$MAKE $MAKECMD" $1 $2
+           failed "$MAKE $MAKEFLAGS $MAKECMD" $1 $2
            return 1
        fi
        return 0
-- 
1.6.0.4

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to