Patch to include hardening flags in compilation of rlimit
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@
         if 'Windows' in platform.system() or 'CYGWIN' in platform.system():
             os.system('gcc -o scripts/rlimit src/rlimit/rlimit-NT.c')
         else:
-            os.system('gcc -o scripts/rlimit src/rlimit/rlimit.c')
+            os.system('gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-z,relro -o scripts/rlimit src/rlimit/rlimit.c')
         # Update the scripts list
         self.scripts = glob.glob('scripts/*')
 
