This commit has been accessed 929 times via Git panel.
commit f29f18423e444d680508ee208dfb1c42e1cd02b6
tree 1c9f0130905c86823613d36e624c21e92e7f7163
parent b51a6a978a795acdeb22268a7f14a265f666a3eb
author Engels Antonio <engels@kalasag.org> 1639242128 +0800
committer Engels Antonio <engels@kalasag.org> 1639242128 +0800
Improve CFLAGS
diff --git a/Makefile b/Makefile
index 4366ee1..abf7634 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ CC = cc
#CC = gcc
# Normal systems flags
-CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -Wall
+CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -Wall -w -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables -fexceptions -fpie -Wl,-pie -fstack-clash-protection -fstack-protector -fstack-protector-strong -fcf-protection -pipe -Werror=format-security -Werror=implicit-function-declaration -Wl,-z,defs -Wl,-z,now -Wl,-z,relro
# Debug mode for kalasag
#CFLAGS = -Wall -g -DNODAEMON -DDEBUG
tree 1c9f0130905c86823613d36e624c21e92e7f7163
parent b51a6a978a795acdeb22268a7f14a265f666a3eb
author Engels Antonio <engels@kalasag.org> 1639242128 +0800
committer Engels Antonio <engels@kalasag.org> 1639242128 +0800
Improve CFLAGS
diff --git a/Makefile b/Makefile
index 4366ee1..abf7634 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ CC = cc
#CC = gcc
# Normal systems flags
-CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -Wall
+CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -Wall -w -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables -fexceptions -fpie -Wl,-pie -fstack-clash-protection -fstack-protector -fstack-protector-strong -fcf-protection -pipe -Werror=format-security -Werror=implicit-function-declaration -Wl,-z,defs -Wl,-z,now -Wl,-z,relro
# Debug mode for kalasag
#CFLAGS = -Wall -g -DNODAEMON -DDEBUG