-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
nss: cross compile support #58063
nss: cross compile support #58063
Conversation
"CROSS_COMPILE=1" | ||
"NSS_DISABLE_GTESTS=1" # don't want to build tests when cross-compiling | ||
"OS_TEST=${cpu}" | ||
"CPU_ARCH=${cpu}" |
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.
We should be able to use NATIVE_CC, OS_TEST and CPU_ARCH unconditionally, no?
This way we have less code that is only when cross-compiling.
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.
updated!
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.
Wait was this done? Oh as many were moved over as possible?
@GrahamcOfBorg build nss |
i cannot test this on darwin unfortunately :( |
This seems like a regression though. The offending line looks like this:
I currently blame |
@GrahamcOfBorg build nss |
@GrahamcOfBorg build pkgsCross.aarch64-multiplatform.nss |
Motivation for this change
nss cross compilation! (important to cross compile NixOS)
at first my solution was really hacky but I got it down to be reasonable again.
should work for
aarch64
&armv7l
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)