diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-06-23 19:20:08 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-06-23 19:20:08 +0300 |
commit | 4a1b59c27a8e85fc3b03c420fbc1642ce52e96cf (patch) | |
tree | c72ab253541c53dd918afc86973192416078fceb /auto/modules/go/conf | |
parent | 5a43bd0bfd1eaa60dede7beb3206a53e8d008fa4 (diff) | |
download | unit-4a1b59c27a8e85fc3b03c420fbc1642ce52e96cf.tar.gz unit-4a1b59c27a8e85fc3b03c420fbc1642ce52e96cf.tar.bz2 |
External Go app request processing.
Diffstat (limited to 'auto/modules/go/conf')
-rw-r--r-- | auto/modules/go/conf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/auto/modules/go/conf b/auto/modules/go/conf new file mode 100644 index 00000000..4c02fdc9 --- /dev/null +++ b/auto/modules/go/conf @@ -0,0 +1,25 @@ + +# Copyright (C) Max Romanov +# Copyright (C) NGINX, Inc. + + +NXT_GO_VERSION="`${NXT_GO} version`" + +GOPATH=`pwd` CGO_CPPFLAGS="-DNXT_CONFIGURE" "${NXT_GO}" build -o build/nxt_go_gen.a --buildmode=c-archive nginext + +if [ "$?" -ne 0 ]; then + $echo + $echo $0: error: no go found. + $echo + exit 1; +fi + +$echo " + go version: ${NXT_GO_VERSION}" + +NXT_GO_MODULE_SRCS=" \ + src/nxt_go.c \ +" + + +NXT_MODULES_INIT="$NXT_MODULES_INIT nxt_go_module_init" +NXT_MODULES_SRCS="$NXT_MODULES_SRCS $NXT_GO_MODULE_SRCS" |