comparison make/solaris/makefiles/adjust-mflags.sh @ 20660:fb6a855141cb

8028407: adjust-mflags.sh failed build with GNU Make 4.0 with -I<path contains j> Reviewed-by: erikj
author henryjen
date Tue, 21 Jan 2014 20:07:14 -0800
parents c18cbe5936b8
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
20624:eb16b24e2eba 20660:fb6a855141cb
62 # Normalize any -jN argument to the form " -j${HBJ}" 62 # Normalize any -jN argument to the form " -j${HBJ}"
63 MFLAGS=` 63 MFLAGS=`
64 echo "$MFLAGS" \ 64 echo "$MFLAGS" \
65 | sed ' 65 | sed '
66 s/^-/ -/ 66 s/^-/ -/
67 s/ -\([^ ][^ ]*\)j/ -\1 -j/ 67 s/ -\([^ I][^ I]*\)j/ -\1 -j/
68 s/ -j[0-9][0-9]*/ -j/ 68 s/ -j[0-9][0-9]*/ -j/
69 s/ -j\([^ ]\)/ -j -\1/ 69 s/ -j\([^ ]\)/ -j -\1/
70 s/ -j/ -j'${HOTSPOT_BUILD_JOBS:-${default_build_jobs}}'/ 70 s/ -j/ -j'${HOTSPOT_BUILD_JOBS:-${default_build_jobs}}'/
71 ' ` 71 ' `
72 72