Explorar o código

fix(makefile): add pacman>6 checking to makefile

jguer %!s(int64=4) %!d(string=hai) anos
pai
achega
999392640e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -23,7 +23,8 @@ POTFILE := default.pot
 POFILES := $(addprefix $(LOCALEDIR)/,$(addsuffix .po,$(LANGS)))
 MOFILES := $(POFILES:.po=.mo)
 
-GOFLAGS ?= -v -trimpath -mod=readonly -modcacherw
+GOFLAGS ?= -v -trimpath -modcacherw
+GOFLAGS += $(shell pacman -T 'pacman>6' && echo "-tags six")
 EXTRA_GOFLAGS ?= -buildmode=pie
 LDFLAGS := $(LDFLAGS) -X "main.yayVersion=${VERSION}" -X "main.localePath=${SYSTEMLOCALEPATH}"