Skip to content

Commit 5fab9bf

Browse files
committed
travis: Ensure cargo links libcurl statically
We don't want a dynamic dependency in the library that we ship, so link it statically by configuring curl-sys's build script to not pick up the system version via pkg-config.
1 parent fd182c4 commit 5fab9bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ci/docker/dist-x86-linux/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,10 @@ ENV RUST_CONFIGURE_ARGS \
8686
--enable-extended \
8787
--enable-sanitizers
8888
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
89+
90+
# This is the only builder which will create source tarballs
8991
ENV DIST_SRC 1
92+
93+
# When we build cargo in this container, we don't want it to use the system
94+
# libcurl, instead it should compile its own.
95+
ENV LIBCURL_NO_PKG_CONFIG 1

0 commit comments

Comments
 (0)