浏览代码

Fix #2023

Disable dynamic linking by default.
tags/v2.12.0-rc1
Shivaram Lingamneni 1年前
父节点
当前提交
f00fd452be
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      Makefile

+ 4
- 0
Makefile 查看文件

@@ -3,6 +3,10 @@
3 3
 GIT_COMMIT := $(shell git rev-parse HEAD 2> /dev/null)
4 4
 GIT_TAG := $(shell git tag --points-at HEAD 2> /dev/null | head -n 1)
5 5
 
6
+# disable linking against native libc / libpthread by default;
7
+# this can be overridden by passing CGO_ENABLED=1 to make
8
+export CGO_ENABLED ?= 0
9
+
6 10
 capdef_file = ./irc/caps/defs.go
7 11
 
8 12
 all: install

正在加载...
取消
保存