From 0fe96dafe095e40006e6687d847cbde8ef98f913 Mon Sep 17 00:00:00 2001 From: inference Date: Mon, 24 Oct 2022 22:00:43 +0100 Subject: [PATCH] Add Malloc - Basic env. --- portage/env/malloc-basic.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 portage/env/malloc-basic.conf diff --git a/portage/env/malloc-basic.conf b/portage/env/malloc-basic.conf new file mode 100644 index 0000000..27b21c0 --- /dev/null +++ b/portage/env/malloc-basic.conf @@ -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}"