Update copyright year range in preparation for 2023. Switch to SPDX license formatting. Improve comments.

This commit is contained in:
inference 2022-12-29 10:28:41 +00:00
parent f95efc3840
commit 01ebe4bf8a

View File

@ -1,12 +1,12 @@
# Portage - env - GCC - No PIE # Portage - env - GCC - No PIE
# Copyright 2022 Inference # Copyright 2022-2023 Inference
# License: BSD 3-Clause Clear # SPDX-License-Identifier: BSD-3-Clause-Clear
# 0.0.1.1 # Version: 0.0.2.2
# Toolchain. # Toolchain
AR="ar" AR="ar"
CC="gcc" CC="gcc"
CPP="cpp" CPP="cpp"
@ -21,14 +21,12 @@ STRINGS="strings"
STRIP="strip" STRIP="strip"
# Flags. # Flags
## Hardening flags. ## Hardening flags
C_SEC="-fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=2 -fwrapv" C_SEC="-fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=2 -fwrapv"
LD_SEC="-Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro" LD_SEC="-Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
## Compiler flags
## Compiler flags.
CFLAGS="-march=znver3 -O2 -pipe -flto=4 -U__gnu_linux__ ${C_SEC}" CFLAGS="-march=znver3 -O2 -pipe -flto=4 -U__gnu_linux__ ${C_SEC}"
CXXFLAGS="-march=znver3 -O2 -pipe -flto=4 ${C_SEC}" CXXFLAGS="-march=znver3 -O2 -pipe -flto=4 ${C_SEC}"
## Linker flags
## Linker flags.
LDFLAGS="-Wl,-O2 ${LD_SEC}" LDFLAGS="-Wl,-O2 ${LD_SEC}"