summaryrefslogtreecommitdiffhomepage
path: root/go/ldflags-lrt.go
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-12-24 17:59:52 +0300
committerMax Romanov <max.romanov@nginx.com>2019-12-24 17:59:52 +0300
commitf5a2984acf9a562b6b1eb45a21d9af2be2415659 (patch)
tree5e61bb9fef4adc52f8e9a46803dc065b4b0faaf2 /go/ldflags-lrt.go
parenta427ecd4c547958079cce2dae13060b2d60aa4d4 (diff)
downloadunit-f5a2984acf9a562b6b1eb45a21d9af2be2415659.tar.gz
unit-f5a2984acf9a562b6b1eb45a21d9af2be2415659.tar.bz2
Go: moving source files to the root of the project.
This patch includes packaging changes related to files move.
Diffstat (limited to 'go/ldflags-lrt.go')
-rw-r--r--go/ldflags-lrt.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/go/ldflags-lrt.go b/go/ldflags-lrt.go
new file mode 100644
index 00000000..f5a63508
--- /dev/null
+++ b/go/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"