Expand some cflag definitions in build.sh and add Minix

This commit is contained in:
Lassi Kortela 2019-08-13 18:30:27 +03:00
parent 71098dd01b
commit 1f3a4798e1
1 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,7 @@ os="$(uname | tr A-Z- a-z_)"
case "$os" in
darwin)
default_cc="clang"
default_cflags="-Wall -Wextra -Wno-strict-aliasing -O2 -falign-functions -std=gnu99"
;;
dragonfly)
default_cc="gcc"
@ -17,16 +18,22 @@ freebsd)
;;
haiku)
default_cc="gcc"
default_cflags="-Wall"
;;
linux)
default_cc="gcc"
CFLAGS="$CFLAGS -D _GNU_SOURCE"
default_cflags="-std=gnu99 -Wall -Wextra -Wno-strict-aliasing -D _GNU_SOURCE"
;;
minix)
default_cc="clang"
default_cflags="-std=gnu99 -Wall -Wextra -Wno-strict-aliasing"
;;
netbsd)
default_cc="gcc"
;;
openbsd)
default_cc="clang"
default_cflags="-Wall"
;;
sunos)
default_cc="gcc"