commit 60698c787a84f41cde79f7dbaacce7203254f7d9
parent 26040d19cb7c3e90e4ae447816473a5d5c709e76
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date: Wed, 17 Nov 2021 14:12:02 +0100
build: allow custom CFLAGS to be set
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
@@ -27,7 +27,7 @@ fi
mkdir -p bin
CC="${CC:-cc}"
-CFLAGS="-std=c89 -Wall -Wno-unknown-pragmas"
+CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas}"
case "$(uname -s 2>/dev/null)" in
MSYS_NT*) # MSYS2 on Windows
UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)"