docs: update examples with += env operator and env usage docs

- foo.kap: document all three env operators (=, ?=, +=) in header,
  demonstrate += in env block with comments

- postgres.kap: demonstrate += for appending security hardening flags

- config.kap: demonstrate system-level += for inherited flags
This commit is contained in:
2026-08-04 13:19:59 -04:00
parent e817e58698
commit d02ab4b7b6
3 changed files with 19 additions and 0 deletions
+2
View File
@@ -67,6 +67,8 @@ system {
env {
CFLAGS = "-O2 -march=native"
// packages inherit this appended flag
CFLAGS += "-pipe"
LDFLAGS = "-Wl,--as-needed"
MAKEFLAGS = "-j8"
}