| 28 Mar 2025 |
n3tcat | I think they might be? I am not entirely sure what -lgcc and -static-libgcc do - I assume they link into newlib | 20:19:12 |
K900 | No, that's libgcc | 20:19:31 |
K900 | But it could be the same thing | 20:19:45 |
K900 | Uhh there is a setting for this | 20:20:37 |
K900 | Somewhere | 20:20:39 |
n3tcat | Like for choosing how libgcc is compiled? | 20:20:57 |
K900 | Like you can set march in the platform definition | 20:20:59 |
K900 | Somewhere | 20:21:08 |
K900 | OK so here's the way I remember this can work | 20:23:09 |
n3tcat | would this be a gcc setting or a nix setting? I am struggling to find anything | 20:23:09 |
K900 | You can use lib.systems.elaborate "m68k-unknown-none-elf" | 20:23:32 |
K900 | In a REPL or something | 20:23:38 |
K900 | That will shit out a huge attrset | 20:23:44 |
K900 | That you can take and pass to crossSystem instead of just the triple | 20:24:04 |
K900 | And hopefully that attrset will have a place to put the right march value in | 20:24:27 |
K900 | That will hopefully be obvious from the name | 20:24:35 |
n3tcat | Sick! I have never used the nix repl before, do I have to do something to define lib? | 20:24:42 |
n3tcat | λ nix repl
Nix 2.24.12
Type :? for help.
nix-repl> lib.systems
error: undefined variable 'lib'
at «string»:1:1:
1| lib.systems
| ^
nix-repl>
| 20:24:47 |
K900 | nix repl nixpkgs | 20:25:18 |
K900 | Or maybe nix repl <nixpkgs> | 20:25:25 |
K900 | I don't remember which one works on 2.24 | 20:25:35 |
n3tcat | ahh tyty | 20:25:42 |