shithub: orca

Download patch

ref: e2789dd2f885e41946f115f3ccc663415ba191e2
parent: 66a68f59e1d0944fbaf30f1ae638d72e24b3e208
author: cancel <cancel@cancel.fm>
date: Fri Nov 30 15:52:19 EST 2018

Fix GCC redef for fortify disable

--- a/tool
+++ b/tool
@@ -176,16 +176,13 @@
       build_subdir=debug
       add cc_flags -DDEBUG -ggdb -fsanitize=address -fsanitize=undefined
       if [[ $os = mac ]]; then
-        # mac clang does not have -Og
+        # Our mac clang does not have -Og
         add cc_flags -O1
-        # tui in the future
-        # add libraries -lncurses
       else
         add cc_flags -Og
         # needed if address is already specified? doesn't work on mac clang, at
         # least
         # add cc_flags -fsanitize=leak
-        # add libraries -lncursesw
       fi
       ;;
     release)
@@ -192,7 +189,7 @@
       build_subdir=release
       add cc_flags -DNDEBUG -O2 -g0
       if [[ $protections_enabled != 1 ]]; then
-        add cc_flags -D_FORTIFY_SOURCE=0 -fno-stack-protector
+        add cc_flags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -fno-stack-protector
       fi
       if [[ $os = mac ]]; then
         # todo some stripping option