From 1f3a4798e165115a765c586fefb9d2b6defbc9ab Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Tue, 13 Aug 2019 18:30:27 +0300 Subject: [PATCH] Expand some cflag definitions in build.sh and add Minix --- scripts/build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 4eb62c5..96a8717 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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"