git: c8406c388408 - main - go.mk: make sure elf generated by go respects the PIE feature
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Oct 2022 12:26:10 UTC
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8406c3884081be59edaca457e2533464b157175 commit c8406c3884081be59edaca457e2533464b157175 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2022-10-26 12:25:25 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2022-10-26 12:26:08 +0000 go.mk: make sure elf generated by go respects the PIE feature Reported by: dmgk --- 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 d75c4c2f0fe1..9b075ccf91cd 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) +.if !defined(PIE_UNSAFE) && defined(WITH_PIE) GO_BUILDFLAGS+= -buildmode=pie .else GO_BUILDFLAGS+= -buildmode=exe