ports/security/crowdsec/files/patch-Makefile
Fernando Apesteguía d6ce96e20b security/crowdsec: update to 1.3.2
PR:	262426
Reported by:	marco+freebsd@crowdsec.net (maintainer)
2022-03-12 19:21:43 +01:00

12 lines
607 B
Text

--- Makefile.orig 2022-02-10 09:11:04 UTC
+++ Makefile
@@ -58,8 +58,8 @@ LD_OPTS_VARS= \
-X github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=$(DEFAULT_CONFIGDIR) \
-X github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=$(DEFAULT_DATADIR)
-export LD_OPTS=-ldflags "-s -w $(LD_OPTS_VARS)"
-export LD_OPTS_STATIC=-ldflags "-s -w $(LD_OPTS_VARS) -extldflags '-static'"
+export LD_OPTS=-mod vendor -modcacherw -ldflags "-s -w $(LD_OPTS_VARS)"
+export LD_OPTS_STATIC=-mod vendor -modcacherw -ldflags "-s -w $(LD_OPTS_VARS) -extldflags '-static'"
RELDIR = crowdsec-$(BUILD_VERSION)