Parcourir la source

Merge pull request #2025 from slingamn/cgo

Fix #2023 (disable dynamic linking by default)
tags/v2.12.0-rc1
Shivaram Lingamneni il y a 1 an
Parent
révision
4b3a6cb611
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      Makefile

+ 4
- 0
Makefile Voir le fichier

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

Chargement…
Annuler
Enregistrer