From 1bc6d1fe6394079d61291b5f2e8a707c4ea0eaff Mon Sep 17 00:00:00 2001 From: Volodymyr Khoroz Date: Fri, 11 Aug 2023 16:49:28 +0300 Subject: [PATCH] Revert "Security: set buildmode to PIE" This reverts commit 6105efe04beb399ef1cba597337385af343ca458. It was breaking the Alpine Linux we use to generate docs. There is something more in play around PIE than expected. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d1f6b570..1542c435 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ COMMIT:=$(shell git describe HEAD)$(shell git diff --quiet || echo '+dirty') -# Use linker flags to provide commit info and create a PIE -LDFLAGS=-buildmode=pie -ldflags "-X=github.com/foundriesio/fioctl/subcommands/version.Commit=$(COMMIT)" +# Use linker flags to provide commit info +LDFLAGS=-ldflags "-X=github.com/foundriesio/fioctl/subcommands/version.Commit=$(COMMIT)" linter:=$(shell which golangci-lint 2>/dev/null || echo $(HOME)/go/bin/golangci-lint)