Skip to content

Instantly share code, notes, and snippets.

@aquynh
Created March 6, 2014 15:08
Show Gist options
  • Save aquynh/9391743 to your computer and use it in GitHub Desktop.
Save aquynh/9391743 to your computer and use it in GitHub Desktop.
Remove string check & stack protector functions for Capstone
diff --git a/Makefile b/Makefile
index 3087e30..6d82dfa 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,10 @@ RANLIB = $(CROSS)ranlib
STRIP = $(CROSS)strip
endif
+# remove string check & stack protector functions
+CFLAGS += -D_FORTIFY_SOURCE=0
+CFLAGS += -fno-stack-protector
+
CFLAGS += -fPIC -O3 -Wall -Iinclude
ifeq ($(USE_SYS_DYN_MEM),yes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment