Browse Source

Fix #2023

Disable dynamic linking by default.
tags/v2.12.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
f00fd452be
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Makefile

+ 4
- 0
Makefile View File

@@ -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

Loading…
Cancel
Save