diff options
Diffstat (limited to 'group-base/env/compiler-clang')
-rw-r--r-- | group-base/env/compiler-clang | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/group-base/env/compiler-clang b/group-base/env/compiler-clang new file mode 100644 index 0000000..8a10729 --- /dev/null +++ b/group-base/env/compiler-clang @@ -0,0 +1,9 @@ +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}" +CXXFLAGS="${CXXFLAGS} ${_HARDENING_FLAGS}" +LDFLAGS="${LDFLAGS} -Wl,-z,relro,-z,now -pie" + +CC="clang" +CXX="clang++" |