Skip to content

Commit d382d6a

Browse files
author
Jorge Aparicio
committed
install-deps.py: add x86_64-unknown-linux-musl target
This lets me build a statically linked cargo on our linux-cross Docker image with the following commands: $ apt-get install musl-tools # for musl-gcc, which is needed to build openssl $ ./.travis.install.deps.sh $ ./configure --local-rust-root=$(pwd)/rustc --enable-nightly --target=x86_64-unknown-linux-musl $ make $ file target/x86_64-unknown-linux-musl/release/cargo cargo: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked (..)
1 parent abdc756 commit d382d6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/etc/install-deps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
targets = [
2323
'i686-unknown-linux-gnu',
2424
'x86_64-unknown-linux-gnu',
25+
'x86_64-unknown-linux-musl',
2526
'arm-unknown-linux-gnueabi',
2627
'arm-unknown-linux-gnueabihf',
2728
'armv7-unknown-linux-gnueabihf',

0 commit comments

Comments
 (0)