From 6a87e4b3a6349b55e68faa3f55cf3c5547cd1813 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Tue, 12 May 2020 10:12:23 +0200 Subject: Add netgo build tag to static binary This allows us to system independently resolve DNS requests in static Podman binaries. Signed-off-by: Sascha Grunert --- nix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/default.nix b/nix/default.nix index 211caee93..cf607c0ad 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -43,7 +43,7 @@ let ]); src = ./..; EXTRA_LDFLAGS = ''-linkmode external -extldflags "-static -lm"''; - BUILDTAGS = ''static apparmor selinux seccomp systemd varlink containers_image_ostree_stub''; + BUILDTAGS = ''static netgo apparmor selinux seccomp systemd varlink containers_image_ostree_stub''; })).override { gpgme = (static pkgs.gpgme); libseccomp = (static pkgs.libseccomp); -- cgit v1.2.3-54-g00ecf