portage-config-clang/env/compiler-clang

10 lines
384 B
Text
Raw Normal View History

2022-07-08 07:34:54 +00:00
LDFLAGS="${LDFLAGS} -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed"
_HARDENING_FLAGS="-fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2"
CFLAGS="${CFLAGS} ${_HARDENING_FLAGS} -O2 -march=native -pipe"
CXXFLAGS="${CXXFLAGS} ${_HARDENING_FLAGS} -O2 -march=native -pipe"
LDFLAGS="${LDFLAGS} -Wl,-z,relro,-z,now -pie -unwindlib=libunwind"
CC="clang"
CXX="clang++"