Last active
February 7, 2024 18:34
-
-
Save Scoubi/20b99c424e446227cb07c5da5b4a3ad4 to your computer and use it in GitHub Desktop.
Revisions
-
Scoubi revised this gist
Dec 25, 2023 . 3 changed files with 19 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ 1. `brew install SergioBenitez/osxct/x86_64-unknown-linux-gnu` 2. `brew install x86_64-linux-gnu-binutils` 3. `rustup target add x86_64-unknown-linux-gnu` 4. Edit `~/.cargo/config` and add ``` [target.x86_64-unknown-linux-gnu] linker = "x86_64-unknown-linux-gnu-gcc" ``` 5. `source ~/.cargo/config` 6. Edit `Cargo.toml` and include OpenSSL crate dependency **This is the part missing from many how-to** ``` [dependencies] openssl = { version = "0.10", features = ["vendored"] } ``` cargo build --target x86_64-unknown-linux-gnu --release This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ 1. `brew install mingw-w64` 1. I think I needed to install cmake `brew install cmake` 1. Edit `~/.cargo/config` and add ``` [target.x86_64-pc-windows-gnu] linker = "x86_64-w64-mingw32-gcc" ``` 4. `source ~/.cargo/config` cargo build --target=x86_64-pc-windows-gnu --release -
Scoubi created this gist
Dec 21, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ 1. brew install SergioBenitez/osxct/x86_64-unknown-linux-gnu 1. brew install x86_64-linux-gnu-binutils 1. rustup target add x86_64-unknown-linux-gnu 1. Edit ~/.cargo/config and add ``` [target.x86_64-unknown-linux-gnu] linker = "x86_64-unknown-linux-gnu-gcc" ``` 1. source ~/.cargo/config 1. Edit Cargo.toml and include OpenSSL crate dependency **This is the part missing from many how-to** ``` [dependencies] openssl = { version = "0.10", features = ["vendored"] } ``` cargo build --target x86_64-unknown-linux-gnu --release This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ 1. brew install mingw-w64 1. I think I needed to install cmake `brew install cmake` 1. Edit ~/.cargo/config and add ``` [target.x86_64-pc-windows-gnu] linker = "x86_64-w64-mingw32-gcc" ``` 1. source ~/.cargo/config cargo build --target=x86_64-pc-windows-gnu --release