summary refs log tree commit diff
path: root/doc/stdenv/stdenv.chapter.md
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-02-20 17:17:34 +0200
committerArtturin <Artturin@artturin.com>2023-02-22 21:23:04 +0200
commit6b2a05e19089c2b16c6ed52e7e495f8a9f903c60 (patch)
tree30990df54ee4a654a86772f909c5d2c318356419 /doc/stdenv/stdenv.chapter.md
parentf9fdf2d4028eac28a074c9ad75d309b3dcbf8e7a (diff)
downloadnixpkgs-6b2a05e19089c2b16c6ed52e7e495f8a9f903c60.tar
nixpkgs-6b2a05e19089c2b16c6ed52e7e495f8a9f903c60.tar.gz
nixpkgs-6b2a05e19089c2b16c6ed52e7e495f8a9f903c60.tar.bz2
nixpkgs-6b2a05e19089c2b16c6ed52e7e495f8a9f903c60.tar.lz
nixpkgs-6b2a05e19089c2b16c6ed52e7e495f8a9f903c60.tar.xz
nixpkgs-6b2a05e19089c2b16c6ed52e7e495f8a9f903c60.tar.zst
nixpkgs-6b2a05e19089c2b16c6ed52e7e495f8a9f903c60.zip
treewide: manual fixups for
treewide: use toString on list NIX_CFLAGS_COMPILE
treewide: move NIX_CFLAGS_COMPILE to the env attrset
Diffstat (limited to 'doc/stdenv/stdenv.chapter.md')
-rw-r--r--doc/stdenv/stdenv.chapter.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md
index 1488a09982a..b3f9f681da4 100644
--- a/doc/stdenv/stdenv.chapter.md
+++ b/doc/stdenv/stdenv.chapter.md
@@ -1329,7 +1329,7 @@ bin/blib.a(bios_console.o): In function `bios_handle_cup':
 
 Adds the `-O2 -D_FORTIFY_SOURCE=2` compiler options. During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain `%n` are blocked. If an application depends on such a format string, it will need to be worked around.
 
-Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set `NIX_CFLAGS_COMPILE` to `-Wno-error=warning-type`.
+Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set `env.NIX_CFLAGS_COMPILE` to `-Wno-error=warning-type`.
 
 This needs to be turned off or fixed for errors similar to: