diff options
author | Sam James <sam@gentoo.org> | 2023-08-20 07:13:59 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-20 07:13:59 +0100 |
commit | 00c0ab09d8e5c1aef7a2e405892ea6eae6b4d726 (patch) | |
tree | cc4057b2230fc9728d362544432dee4347e2acc0 /profiles/features/llvm | |
parent | dev-python/black: Stabilize 23.7.0 hppa, #912597 (diff) | |
download | gentoo-00c0ab09d8e5c1aef7a2e405892ea6eae6b4d726.tar.gz gentoo-00c0ab09d8e5c1aef7a2e405892ea6eae6b4d726.tar.bz2 gentoo-00c0ab09d8e5c1aef7a2e405892ea6eae6b4d726.zip |
profiles/features/llvm: drop redundant hardening flags
This is all handled by clang-common now - and has been for a while.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'profiles/features/llvm')
-rw-r--r-- | profiles/features/llvm/make.defaults | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/profiles/features/llvm/make.defaults b/profiles/features/llvm/make.defaults index 54254b71b575..a677172b269d 100644 --- a/profiles/features/llvm/make.defaults +++ b/profiles/features/llvm/make.defaults @@ -13,20 +13,6 @@ 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" -# -# 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}" -CXXFLAGS="${CXXFLAGS} ${SOME_HARDENING_FLAGS}" -LDFLAGS="${LDFLAGS} ${SOME_HARDENING_LDFLAGS}" - # use LLVM-provided binutils AR="llvm-ar" AS="clang -c" |