summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2025-07-01 19:17:30 +0300
committerGleb Popov <arrowd@FreeBSD.org>2025-07-02 17:58:22 +0300
commit4691740c69fa6569b5ec49c4eb9bf0155ce32b67 (patch)
tree8aa5f4e1cbccf7008310433791370c13e010e638
parentx11-themes/cursor-dmz-aa-theme: update to 0.4.5.2 and take maintainership (diff)
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
-rw-r--r--Mk/Features/ssp.mk1
1 files changed, 0 insertions, 1 deletions
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