Go: fixed splitting recipe line with newer gmake.

Use double quotes to quote a string with the backslash/newline pair.
Newer gmake versions, such as GNU Make 4.1, do not remove the backslash
from a string quoted with single quotes, which results in an extraneous
backslash passed to the shell and, eventually, to the Go compiler.
This commit is contained in:
Sergey Kandaurov
2017-08-31 18:21:22 +03:00
parent f27ed60a09
commit db85a9a015

View File

@@ -99,8 +99,8 @@ ${NXT_GO}: $NXT_BUILD_DIR/nxt_go_gen.h
$NXT_BUILD_DIR/nxt_go_gen.h: src/go/unit/*.go
GOPATH=`pwd` \\
CGO_CPPFLAGS='-DNXT_CONFIGURE \\
-I`pwd`/src' \\
CGO_CPPFLAGS="-DNXT_CONFIGURE \\
-I`pwd`/src" \\
${NXT_GO} build -o $NXT_BUILD_DIR/nxt_go_gen.a \\
--buildmode=c-archive go/unit