git: 85afc194241b - main - go.mk: enable PIE build for amd64 only
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Oct 2022 22:35:02 UTC
The branch main has been updated by glebius (src committer):
URL: https://cgit.FreeBSD.org/ports/commit/?id=85afc194241b73a9cdf2bf99ede41be39d6a1205
commit 85afc194241b73a9cdf2bf99ede41be39d6a1205
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-10-31 22:34:02 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-10-31 22:34:02 +0000
go.mk: enable PIE build for amd64 only
So far it has been tested for amd64 only and is known to fail
to build at least for arm64.
Approved by: bapt
---
Mk/Uses/go.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk
index 9b075ccf91cd..bbbf3b20938e 100644
--- a/Mk/Uses/go.mk
+++ b/Mk/Uses/go.mk
@@ -90,7 +90,7 @@ GO_PKGNAME= ${PORTNAME}
GO_TARGET?= ${GO_PKGNAME}
GO_TESTTARGET?= ./...
-.if !defined(PIE_UNSAFE) && defined(WITH_PIE)
+.if !defined(PIE_UNSAFE) && defined(WITH_PIE) && ${ARCH} == amd64
GO_BUILDFLAGS+= -buildmode=pie
.else
GO_BUILDFLAGS+= -buildmode=exe