Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS is unused key(s) #1558

Closed
4 of 11 tasks
xdestiny110 opened this issue Sep 13, 2024 · 1 comment
Closed
4 of 11 tasks

Comments

@xdestiny110
Copy link

Checklist

Describe your issue

Cross.toml

[target.x86_64-unknown-linux-musl]
image = "musl-openssl:1.0"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS = ["-C target-feature=-crt-static"]

When I use cross build --target x86_64-unknown-linux-musl --release, it says

[cross] warning: found unused key(s) in Cross configuration
 > target.x86_64-unknown-linux-musl.cargo_target_x86_64_unknown_linux_musl_rustflags

How can I setup rustflags in order to compile cdylib in musl?

What target(s) are you cross-compiling for?

No response

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.5 (d8631fe 2024-08-17)

Example

No response

Additional information / notes

No response

@Emilgardis
Copy link
Member

Just set the environment variable RUSTFLAGS like normal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants