linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit b1071cad183ea3c747147e53b5b3c202f5b61477 parent 4ce68509e2d3536803e9ce7c5e37f59d4fe1b2d5 Author: Jul <jul@9o.is> Date: Wed, 20 Aug 2025 21:30:43 -0400 enable more strict cflag errors globally Diffstat:
| M | config.def.sh | | | 2 | +- |
| M | pkg/abduco/gen.sh | | | 4 | +++- |
| M | pkg/oksh/gen.sh | | | 8 | +++++++- |
| M | pkg/sbase/gen.sh | | | 19 | +++++++++++-------- |
4 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/config.def.sh b/config.def.sh @@ -3,7 +3,7 @@ BUILD_DIR='out' TARGET_ARCH='x86_64' TARGET_PLATFORM="$TARGET_ARCH-linux-musl" -TARGET_CFLAGS='-Os -fPIE -pipe -Werror=implicit-function-declaration' +TARGET_CFLAGS='-Os -fPIE -pipe -Wall -Werror -Wextra -pedantic' TARGET_LDFLAGS='-s -static-pie' HOST_CFLAGS='-O2 -pipe' diff --git a/pkg/abduco/gen.sh b/pkg/abduco/gen.sh @@ -2,7 +2,9 @@ cflags -std=c99 \ -D _POSIX_C_SOURCE=200809L \ -D _XOPEN_SOURCE=700 \ -D VERSION='\"0.6\"' \ - -I '$dir/headers' + -I '$dir/headers' \ + -Wno-sign-compare \ + -Wno-unused-parameter exe abduco abduco.c copy 'abduco.1' diff --git a/pkg/oksh/gen.sh b/pkg/oksh/gen.sh @@ -2,7 +2,13 @@ cflags -D SMALL \ -D EMACS \ -D VI \ -D _GNU_SOURCE \ - -I '$dir/headers' + -I '$dir/headers' \ + -Wno-pedantic \ + -Wno-unused-but-set-variable \ + -Wno-sign-compare \ + -Wno-implicit-fallthrough \ + -Wno-unused-parameter \ + -Wno-clobbered exe ksh alloc.c \ asprintf.c \ diff --git a/pkg/sbase/gen.sh b/pkg/sbase/gen.sh @@ -1,16 +1,19 @@ cflags -std=c99 \ - -Wall \ - -Werror \ - -Wpedantic \ - -Wno-maybe-uninitialized \ - -Wno-parentheses \ - -Wno-misleading-indentation \ - -Wno-unused-variable \ -D _DEFAULT_SOURCE \ -D _BSD_SOURCE \ -D _NETBSD_SOURCE \ -D _XOPEN_SOURCE=700 \ - -I '$outdir/headers' + -I '$outdir/headers' \ + -Wno-maybe-uninitialized \ + -Wno-parentheses \ + -Wno-misleading-indentation \ + -Wno-unused-variable \ + -Wno-unused-parameter \ + -Wno-implicit-fallthrough \ + -Wno-sign-compare \ + -Wno-missing-field-initializers \ + -Wno-type-limits \ + -Wno-empty-body lib libutil.a libutil/concat.c \ libutil/cp.c \