build: allow custom CFLAGS to be set

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-17 14:12:02 +01:00 committed by Sigrid Solveig Haflínudóttir
parent 26040d19cb
commit 60698c787a
No known key found for this signature in database
GPG Key ID: FC8DDA5A6A7456C4
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ fi
mkdir -p bin mkdir -p bin
CC="${CC:-cc}" 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 case "$(uname -s 2>/dev/null)" in
MSYS_NT*) # MSYS2 on Windows MSYS_NT*) # MSYS2 on Windows
UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)" UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)"