From 60698c787a84f41cde79f7dbaacce7203254f7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Wed, 17 Nov 2021 14:12:02 +0100 Subject: [PATCH] build: allow custom CFLAGS to be set --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 01e3192..5f40efd 100755 --- 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)"