Support static builds on ARM
danxmoran opened this issue · comments
We're testing a static build of InfluxDB OSS v2 on ARM, and seeing failures from pkg-config. One warning I saw in the build output was:
Unable to determine cargo target. Using the default. {"target": "linux_arm64_static"}
This is because the logic for determining a cargo target includes cases for ARM, but only for non-static builds:
Lines 45 to 67 in b223740
We should add cases for static ARM builds. My best guesses for what those target should be are:
- ARM64: aarch64-unknown-linux-musl
- ARM 6: arm-unknown-linux-musleabihf
- ARM 7: armv7-unknown-linux-musleabihf