build: allow custom CFLAGS to be set
This commit is contained in:
parent
26040d19cb
commit
60698c787a
2
build.sh
2
build.sh
|
@ -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)"
|
||||||
|
|
Loading…
Reference in New Issue