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
@@ -77,6 +77,8 @@ package "postgresql" {
env {
CFLAGS = "-O2"
// append security hardening flags
CFLAGS += "-D_FORTIFY_SOURCE=2"
LDFLAGS = "-Wl,--as-needed"
}