Skip to content

Commit

Permalink
Add atomic lib to arm-unknown-linux-gnueabihf
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Jul 23, 2023
1 parent f75efe3 commit 3a244a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
- target: arm-unknown-linux-gnueabi
rust: stable
os: ubuntu-latest
- target: arm-unknown-linux-gnueabihf
rust: stable
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
rust: stable
os: ubuntu-latest
Expand Down
14 changes: 14 additions & 0 deletions ci/docker/arm-unknown-linux-gnueabihf/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ubuntu:18.04

RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates \
make \
perl \
gcc \
libc6-dev \
gcc-arm-linux-gnueabihf \
gcc-multilib-arm-linux-gnueabihf \
libc6-dev-armel-cross

ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_RUNNER=echo \
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,12 @@ impl Build {

let libs = if target.contains("msvc") {
vec!["libssl".to_string(), "libcrypto".to_string()]
} else if target == "arm-unknown-linux-gnueabihf" {
vec![
"ssl".to_string(),
"crypto".to_string(),
"atomic".to_string(),
]
} else {
vec!["ssl".to_string(), "crypto".to_string()]
};
Expand Down

0 comments on commit 3a244a8

Please sign in to comment.