summaryrefslogtreecommitdiffhomepage
path: root/go/ldflags-lrt.go
diff options
context:
space:
mode:
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"