From f95efc38403603fb0d4d37cbab0cdfa512f2c95e Mon Sep 17 00:00:00 2001 From: inference Date: Thu, 29 Dec 2022 10:27:41 +0000 Subject: [PATCH] Update copyright year range in preparation for 2023. Switch to SPDX license formatting. Improve comments. --- portage/env/gcc-nolto.conf | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/portage/env/gcc-nolto.conf b/portage/env/gcc-nolto.conf index b8379dc..b43d880 100644 --- a/portage/env/gcc-nolto.conf +++ b/portage/env/gcc-nolto.conf @@ -1,12 +1,12 @@ # Portage - env - GCC - No LTO -# Copyright 2022 Inference -# License: BSD 3-Clause Clear +# Copyright 2022-2023 Inference +# SPDX-License-Identifier: BSD-3-Clause-Clear -# 0.0.0.0 +# Version: 0.0.1.1 -# Toolchain. +# Toolchain AR="ar" CC="gcc" CPP="cpp" @@ -21,14 +21,12 @@ STRINGS="strings" STRIP="strip" -# Flags. -## Hardening flags. +# Flags +## Hardening flags C_SEC="-fPIE -fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=2 -fwrapv" LD_SEC="-Wl,-pie -Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro" - -## Compiler flags. +## Compiler flags CFLAGS="-march=znver3 -O2 -pipe -U__gnu_linux__ ${C_SEC}" CXXFLAGS="-march=znver3 -O2 -pipe ${C_SEC}" - -## Linker flags. +## Linker flags LDFLAGS="-Wl,-O2 ${LD_SEC}"