diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-02-18 22:49:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-02-18 22:49:31 +0000 |
commit | 33343742969167e9915ed63a2be2e71dcab5feae (patch) | |
tree | 02d02bf83082f2dde15f048e5f7c39ba8d651ee1 | |
parent | d2809bd7a0024deceb8a1258b1a70ca1545ee005 (diff) |
hardened {c,cxx,ld}flags
-rw-r--r-- | conf/intel/portage/global.conf/cflags.conf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/conf/intel/portage/global.conf/cflags.conf b/conf/intel/portage/global.conf/cflags.conf index e0b7694..d32946c 100644 --- a/conf/intel/portage/global.conf/cflags.conf +++ b/conf/intel/portage/global.conf/cflags.conf @@ -1,5 +1,5 @@ -CFLAGS="-O2 -march=x86-64 -mtune=generic -pipe -fno-delete-null-pointer-checks -Wno-deprecated -Wno-deprecated-declarations" -CXXFLAGS="-O2 -march=x86-64 -mtune=generic -pipe -fno-delete-null-pointer-checks -Wno-deprecated -Wno-deprecated-declarations" -LDFLAGS="-Wl,-O1 -Wl,--as-needed" +CFLAGS="-O2 -march=x86-64 -mtune=generic -pipe -fno-delete-null-pointer-checks -Wno-deprecated -Wno-deprecated-declarations -fno-plt -fstack-protector-strong -pie -Wp,-D_FORTIFY_SOURCE=2" +CXXFLAGS="-O2 -march=x86-64 -mtune=generic -pipe -fno-delete-null-pointer-checks -Wno-deprecated -Wno-deprecated-declarations -fno-plt -fstack-protector-strong -pie -Wp,-D_FORTIFY_SOURCE=2" +LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,z,relro -Wl,z,now" CHOST="x86_64-pc-linux-gnu" MAKEOPTS="-j10" |