Skip to content

Commit

Permalink
docker: define PKG_CONFIG_ALLOW_CROSS
Browse files Browse the repository at this point in the history
The PKG_CONFIG_ALLOW_CROSS env variable is required to cross compile
various crates such as openssl.

Fix #383
  • Loading branch information
Guillaume Desmottes committed Mar 6, 2020
1 parent dfa1646 commit 07dba32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ pub fn run(target: &Target,
}
}

docker.args(&["-e", "PKG_CONFIG_ALLOW_CROSS=1"]);

docker.arg("--rm");

// We need to specify the user for Docker, but not for Podman.
Expand Down

0 comments on commit 07dba32

Please sign in to comment.