nvidiaCtkPackages: fix misinterpreted ldflags

eeb1b2ffec has completely misinterpreted the flags
This commit is contained in:
Someone Serge 2024-02-13 16:04:00 +00:00
parent 55ae7a91b6
commit a14694db37
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4

View File

@ -78,9 +78,11 @@ buildGoModule rec {
# https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/03cbf9c6cd26c75afef8a2dd68e0306aace80401/Makefile#L64
ldflags = [
"-extldflags=-Wl,-z,lazy" # May be redunandant, cf. `man ld`: "Lazy binding is the default".
"--strip-all" # May be redundant. Upstream: "-s".
# Omitting the upstream flag: "-w" (suppresses errors and warnings).
"--discard-locals" # May be redundant. Upstream: "-X".
"-s" # "disable symbol table"
"-w" # "disable DWARF generation"
# "-X name=value"
"-X"
"${cliVersionPackage}.version=${version}"
];