Skip to content

Instantly share code, notes, and snippets.

@jwhostet
Last active July 19, 2020 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwhostet/d9c6963d2cdfed2412fd07e85920572d to your computer and use it in GitHub Desktop.
Save jwhostet/d9c6963d2cdfed2412fd07e85920572d to your computer and use it in GitHub Desktop.
Make file diff for cross-compiling with MIPS. https://github.com/dennypage/dpinger.git
diff --git a/Makefile b/Makefile
index 9d470af..81b324a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
#CC=gcc
#WARNINGS=-Wall -Wextra -Wformat=2 -Wno-unused-result
-CC=clang
-WARNINGS=-Weverything -Wno-padded -Wno-disabled-macro-expansion -Wno-reserved-id-macro
+CC=mips-linux-gnu-gcc-7
+WARNINGS=-Wall -Wextra -Wformat=2 -Wno-unused-result
-CFLAGS=${WARNINGS} -pthread -g -O2
+CFLAGS=${WARNINGS} -static -pthread -g -O2
all: dpinger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment