Date: Wed, 26 Oct 2022 12:26:10 GMT From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: c8406c388408 - main - go.mk: make sure elf generated by go respects the PIE feature Message-ID: <202210261226.29QCQA7c016523@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210261226.29QCQA7c016523>