summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/ldflags-lrt.go
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-12-05 17:06:37 +0300
committerMax Romanov <max.romanov@nginx.com>2017-12-05 17:06:37 +0300
commit0db4d2531648796a3447a409f05bd82bcc91ff9f (patch)
tree03564c3ea239684ce1572c8b7046bb9b3e3f1dbe /src/go/unit/ldflags-lrt.go
parentcdf900cf2c98b4e3fad11e8b69cd2135f2c306c7 (diff)
downloadunit-0db4d2531648796a3447a409f05bd82bcc91ff9f.tar.gz
unit-0db4d2531648796a3447a409f05bd82bcc91ff9f.tar.bz2
Fixing Go package build in NetBSD.
Bug introduced in 585c8068a6d7.
Diffstat (limited to 'src/go/unit/ldflags-lrt.go')
-rw-r--r--src/go/unit/ldflags-lrt.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/go/unit/ldflags-lrt.go b/src/go/unit/ldflags-lrt.go
new file mode 100644
index 00000000..f5a63508
--- /dev/null
+++ b/src/go/unit/ldflags-lrt.go
@@ -0,0 +1,13 @@
+// +build linux netbsd
+
+/*
+ * Copyright (C) Max Romanov
+ * Copyright (C) NGINX, Inc.
+ */
+
+package unit
+
+/*
+#cgo LDFLAGS: -lrt
+*/
+import "C"