Last active
July 19, 2020 01:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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