From b54783917c310312a39d4a7e384a5fcafa1bc3c6 Mon Sep 17 00:00:00 2001 From: Patrick Haun Date: Mon, 19 Mar 2018 19:43:43 +0100 Subject: [PATCH] [fix] always link zlib static libz-sys uses these options https://github.com/alexcrichton/libz-sys/blob/8eb6f9e8f45cef71f8a3fa94d849ac54a263c090/build.rs#L52 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43bf2b6..8924c74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -96,7 +96,9 @@ ENV OPENSSL_DIR=/usr/local/musl/ \ PQ_LIB_STATIC_X86_64_UNKNOWN_LINUX_MUSL=1 \ PG_CONFIG_X86_64_UNKNOWN_LINUX_GNU=/usr/bin/pg_config \ PKG_CONFIG_ALLOW_CROSS=true \ - PKG_CONFIG_ALL_STATIC=true + PKG_CONFIG_ALL_STATIC=true \ + LIBZ_SYS_STATIC=1 \ + TARGET=musl # (Please feel free to submit pull requests for musl-libc builds of other C # libraries needed by the most popular and common Rust crates, to avoid