-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
entrypoint: Add option to disable/enable static linking
Closes #80
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,14 +134,13 @@ _Many target triples do not work, see #4_ | |
|
||
# Static linking | ||
|
||
Because this action is based on alpine some libraries won't dynamically link correctly (like openssl, see #66, #49, and #79). To enable static linking you can add this `RUSTFLAGS` option: | ||
|
||
Some libraries (like openssl, see #49, #66, #79) don't statically link correctly on alpine. If you | ||
experience issues you can try disabling static linking with | ||
```yml | ||
- name: Compile | ||
id: compile | ||
uses: rust-build/[email protected] | ||
env: | ||
RUSTFLAGS: '-C target-feature=-crt-static' | ||
with: | ||
RUSTTARGET: x86_64-unknown-linux-musl | ||
STATIC_LINKING: false | ||
``` |
This file contains 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 characters
This file contains 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 characters