summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2021-12-11 17:00:43 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-12-11 17:00:43 +0100
commit438b8a83658946ab18ef459eff68e1aec7fdfeca (patch)
tree5197cc48029c4a5d70d2016f2900621338757d3f /profiles/features/clang/make.defaults
parentdev-perl/YAML-Syck: Remove old (diff)
downloadgentoo-438b8a83658946ab18ef459eff68e1aec7fdfeca.tar.gz
gentoo-438b8a83658946ab18ef459eff68e1aec7fdfeca.tar.bz2
gentoo-438b8a83658946ab18ef459eff68e1aec7fdfeca.zip
profiles, clang feature: shrink back hardening flags to minimum for now
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'profiles/features/clang/make.defaults')
-rw-r--r--profiles/features/clang/make.defaults11
1 files changed, 8 insertions, 3 deletions
diff --git a/profiles/features/clang/make.defaults b/profiles/features/clang/make.defaults
index a2235ff4a49..7674593179f 100644
--- a/profiles/features/clang/make.defaults
+++ b/profiles/features/clang/make.defaults
@@ -13,9 +13,14 @@ LD="ld.lld"
# linker flags
LDFLAGS="${LDFLAGS} -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed"
-# hardening flags
-SOME_HARDENING_CFLAGS="-fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2"
-SOME_HARDENING_LDFLAGS="-Wl,-z,relro,-z,now -pie"
+## hardening flags
+#SOME_HARDENING_CFLAGS="-fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2"
+#SOME_HARDENING_LDFLAGS="-Wl,-z,relro,-z,now -pie"
+#
+# we need to eventually do this the same way as in gcc, for now let's
+# keep it to a minimum
+SOME_HARDENING_CFLAGS="-D_FORTIFY_SOURCE=2"
+SOME_HARDENING_LDFLAGS=""
# enable hardening by default, cf. gcc[pie,ssp]
CFLAGS="${CFLAGS} ${SOME_HARDENING_FLAGS}"