From f00fd452be03c0c91badc3f717d721b84671fa75 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 26 Dec 2022 02:27:28 -0500 Subject: [PATCH] Fix #2023 Disable dynamic linking by default. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 093685c1..de7d494f 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,10 @@ GIT_COMMIT := $(shell git rev-parse HEAD 2> /dev/null) GIT_TAG := $(shell git tag --points-at HEAD 2> /dev/null | head -n 1) +# disable linking against native libc / libpthread by default; +# this can be overridden by passing CGO_ENABLED=1 to make +export CGO_ENABLED ?= 0 + capdef_file = ./irc/caps/defs.go all: install