summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-29 11:33:35 -0700
committerMax Romanov <max.romanov@nginx.com>2017-08-29 11:33:35 -0700
commit52ae0e69c14cb65223e23b533e0753fe8aa1e971 (patch)
treee2adb49883a5a80adfebf6e67b8c19e7ca5180c2
parent73dc76b0bf87336d5e0a5d8f8c820a0c5e4de364 (diff)
downloadunit-52ae0e69c14cb65223e23b533e0753fe8aa1e971.tar.gz
unit-52ae0e69c14cb65223e23b533e0753fe8aa1e971.tar.bz2
Store and use NXT_LIBRT for go module.
Diffstat (limited to '')
-rw-r--r--auto/modules/go2
-rw-r--r--auto/save2
-rw-r--r--auto/shmem1
3 files changed, 4 insertions, 1 deletions
diff --git a/auto/modules/go b/auto/modules/go
index dcbc63a5..ea1a5343 100644
--- a/auto/modules/go
+++ b/auto/modules/go
@@ -108,7 +108,7 @@ ${NXT_GO}:
install -p ./src/nginext/*.c ./src/nginext/*.h \\
./src/nginext/*.go \$(GOPATH)/src/nginext/
CGO_CFLAGS="-I\$(NXT_ROOT)/build -I\$(NXT_ROOT)/src" \\
- CGO_LDFLAGS="-L\$(NXT_ROOT)/build" \\
+ CGO_LDFLAGS="-L\$(NXT_ROOT)/build ${NXT_LIBRT}" \\
GOPATH=$NXT_GO_PATH \\
go install -v nginext
diff --git a/auto/save b/auto/save
index d295ad8b..dabe6e6f 100644
--- a/auto/save
+++ b/auto/save
@@ -16,6 +16,8 @@ NXT_MODULE_LINK='$NXT_MODULE_LINK'
NXT_TEST_CFLAGS='$NXT_TEST_CFLAGS'
NXT_TEST_LIBS='$NXT_TEST_LIBS'
+NXT_LIBRT='$NXT_LIBRT'
+
echo=$NXT_BUILD_DIR/echo
NXT_LIB_AUX_CFLAGS=
diff --git a/auto/shmem b/auto/shmem
index 48665649..8fd5c3f4 100644
--- a/auto/shmem
+++ b/auto/shmem
@@ -13,6 +13,7 @@ nxt_feature_libs=
if [ "$NXT_SYSTEM" = "Linux" ]; then
nxt_feature_libs=-lrt
+ NXT_LIBRT=-lrt
fi
nxt_feature_test="#include <sys/mman.h>