From 784f4d7737a0dedcd5d6fb7ea2092717a550a3a4 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Thu, 13 Apr 2017 16:38:17 +0200 Subject: [PATCH] Fix static build. See https://github.com/google/guetzli/issues/146#issuecomment-290022456 for where this fix is coming from. It's a bit of a hack but it will do for now. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index b6491d0..0d471e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ RUN \ git checkout "${GUETZLI_VERSION}" &&\ make -j$(nproc) config=release \ TARGETDIR=/usr/local/bin \ + LDFLAGS="-static -lpng -lz -lm" \ ) &&\ \ apk del --no-cache .build-deps &&\