Browse Source
Merge pull request #2025 from slingamn/cgo
Fix #2023 (disable dynamic linking by default)
tags/v2.12.0-rc1
Shivaram Lingamneni
1 year ago
No account linked to committer's email address
1 changed files with
4 additions and
0 deletions
-
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
|