]> git.armaanb.net Git - config.org.git/commitdiff
ash: fortify CFLAGS
authorArmaan Bhojwani <me@armaanb.net>
Sat, 3 Jul 2021 15:15:25 +0000 (11:15 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 3 Jul 2021 15:15:25 +0000 (11:15 -0400)
config.org

index 94f6c6407d3adce37b8d31bbd7ba764cb5987bc7..2a4537d75af13175976228ea2e5984eb652edce0 100644 (file)
@@ -969,7 +969,7 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac
 **** Compilation flags
 #+begin_src shell :tangle ~/.config/ash/ashrc
   export CC=clang
 **** Compilation flags
 #+begin_src shell :tangle ~/.config/ash/ashrc
   export CC=clang
-  export CFLAGS="-O3 -pipe -march=native"
+  export CFLAGS="-O3 -pipe -march=native -w -D_FORTIFY_SOURCE=1 -fPIE -fPIC"
   export CXX=clang++
   export CXXFLAGS="$CFLAGS -stdlib=libc++"
   export MAKEFLAGS="-j$(nproc)"
   export CXX=clang++
   export CXXFLAGS="$CFLAGS -stdlib=libc++"
   export MAKEFLAGS="-j$(nproc)"