diff options
author | tilpner | 2018-09-25 15:58:57 +0200 |
---|---|---|
committer | tilpner | 2018-09-25 15:58:57 +0200 |
commit | 040ec873821d23e168a59b7ee21697fe0af5bb4c (patch) | |
tree | 1c720f0a4c54ba76799ecfa3716821f7e95950e4 /README.md | |
download | carnix-cross-040ec873821d23e168a59b7ee21697fe0af5bb4c.tar.gz carnix-cross-040ec873821d23e168a59b7ee21697fe0af5bb4c.tar.xz carnix-cross-040ec873821d23e168a59b7ee21697fe0af5bb4c.zip |
Initial commit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..3ab75e2 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +Test repo to figure out cross compilation with carnix + +AFAICT individual packages are largely agnostic wrt. what they're being compiled for. +nixpkgs-unstable has neat support for cross compilation without fancy flags: + +``` + file $(nix-build --no-out-link '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.hello)/bin/hello + /nix/store/6924zrj4fww7xs7qzxfidj5n7id6qngi-hello-2.10-aarch64-unknown-linux-gnu/bin/hello: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /nix/store/rcj93w6gk9l6w9jgmqx911iycs2ya9rg-glibc-2.27-aarch64-unknown-linux-gnu/lib/ld-linux-aarch64.so.1, for GNU/Linux 2.6.32, not stripped +``` + +There *is* a pkgsCross.musl64, but it seems to link musl dynamically, not sure what's up with that. |