-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
doc/stdenv/cross-compilation: Add 'Using -static
outside a isStatic
platform'
#344985
Conversation
ff0fe15
to
9ad071e
Compare
Using
-static outside a
isStatic platform
-static
outside a isStatic
platform'
9ad071e
to
92ecc3f
Compare
|
||
Example of an error which this fixes. | ||
|
||
`cannot find -lm: No such file or directory` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add -lc
as its common one too
Isn't the "right" solution to use an |
What is |
Added a note |
…c` platform' This issue often comes up when builds use `-static` in their own build system This may not be the correct location for this as it's not strictly a cross issue, but it's the best one I can think of Inspired by someone wanting to build a `riscv-busybox-initramfs` and just adding `pkgsCross.riscv32.stdenv.cc` to `nativeBuildInputs`
It was just something in the matrix cross room, I don't have it. |
This issue often comes up when builds use
-static
in their own buildsystem
This may not be the correct location for this as it's not strictly a
cross issue, but it's the best one I can think of
Inspired by someone wanting to build a
riscv-busybox-initramfs
and justadding
pkgsCross.riscv32.stdenv.cc
tonativeBuildInputs