From a479e6ec3cc8a62985a6bcfe17233782431a4167 Mon Sep 17 00:00:00 2001 From: David Przybilla Date: Sat, 30 Sep 2023 09:57:25 +0900 Subject: [PATCH] add ldflags --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 1467db1..a6fde75 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,9 @@ ''; vendorSha256 = "sha256-sjg+D0IIErl21HZjXBNKBTqXBZfy6w6EhHYS0seUE3k="; + ldflags = [ + "-extldflags -static" + ]; LD_LIBRARY_PATH = (pkgs.lib.strings.makeLibraryPath [ pkgs.stdenv.cc.cc.lib pkgs.llvmPackages_14.libclang.lib