libucontext: build the hand-written asm files with -Wa,--noexecstack

meson.build omits the flag the Makefile passes, giving every static consumer
(e.g. pkgsStatic.lix via capnproto) an executable stack. :)

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
Raito Bezarius
2026-09-28 11:25:25 +02:00
parent 31d68abfc5
commit c76523c9bb

View File

@@ -23,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
ninja
];
# Makefile builds the asm files with -Wa,--noexecstack, meson.build does not.
# If you do not pass it, you get PT_GNU_STACK=RWE on static consumers of the library.
# https://github.com/kaniini/libucontext/issues/83
env.NIX_CFLAGS_COMPILE = "-Wa,--noexecstack";
passthru.updateScript = nix-update-script { };
meta = {