git: 4691740c69fa - main - Features/ssp.mk: Do not pass -fstack-protector as LDFLAGS
Date: Wed, 02 Jul 2025 14:58:28 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4691740c69fa6569b5ec49c4eb9bf0155ce32b67
commit 4691740c69fa6569b5ec49c4eb9bf0155ce32b67
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-07-01 16:17:30 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-07-02 14:58:22 +0000
Features/ssp.mk: Do not pass -fstack-protector as LDFLAGS
This isn't really a linker flag and worked only because C/C++ compiler is
usually used as linker.
This is backed by my own study of LLVM's code as well as this reply from
Flang's dev: https://discourse.llvm.org/t/flang-working-as-linker/87133/5
Approved by: bapt (portmgr)
Differential Revision: https://reviews.freebsd.org/D51116
---
Mk/Features/ssp.mk | 1 -
1 file changed, 1 deletion(-)
diff --git a/Mk/Features/ssp.mk b/Mk/Features/ssp.mk
index 2af92acd1d8e..b6be18ce35e8 100644
--- a/Mk/Features/ssp.mk
+++ b/Mk/Features/ssp.mk
@@ -17,6 +17,5 @@ SSP_Include_MAINTAINER= portmgr@FreeBSD.org
# Overridable as a user may want to use -fstack-protector-all
SSP_CFLAGS?= -fstack-protector-strong
CFLAGS+= ${SSP_CFLAGS}
-LDFLAGS+= ${SSP_CFLAGS}
. endif
.endif