Add Malloc - Basic env.

This commit is contained in:
inference 2022-10-24 22:00:43 +01:00
parent 62e44901cb
commit 0fe96dafe0

16
portage/env/malloc-basic.conf vendored Normal file
View File

@ -0,0 +1,16 @@
# Portage - env - Clang - Malloc, Basic
# Copyright 2022 Inference
# License: BSD 3-Clause Clear
# Flags.
## Hardening flags.
LD_SEC="-L/usr/local/lib -lhardened_malloc"
## Compiler flags.
CFLAGS="-march=znver3 -O2 -pipe -U__gnu_linux__"
CXXFLAGS="-march=znver3 -O2 -pipe"
## Linker flags.
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind ${LD_SEC}"