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:
@@ -99,8 +99,8 @@ ${NXT_GO}: $NXT_BUILD_DIR/nxt_go_gen.h
|
|||||||
|
|
||||||
$NXT_BUILD_DIR/nxt_go_gen.h: src/go/unit/*.go
|
$NXT_BUILD_DIR/nxt_go_gen.h: src/go/unit/*.go
|
||||||
GOPATH=`pwd` \\
|
GOPATH=`pwd` \\
|
||||||
CGO_CPPFLAGS='-DNXT_CONFIGURE \\
|
CGO_CPPFLAGS="-DNXT_CONFIGURE \\
|
||||||
-I`pwd`/src' \\
|
-I`pwd`/src" \\
|
||||||
${NXT_GO} build -o $NXT_BUILD_DIR/nxt_go_gen.a \\
|
${NXT_GO} build -o $NXT_BUILD_DIR/nxt_go_gen.a \\
|
||||||
--buildmode=c-archive go/unit
|
--buildmode=c-archive go/unit
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user