| 12 Jan 2025 |
John Ericson | if you have, e.g. like a "compat" library for building stuff on linux with non-illumos glibc (like the freebsd and netbsd compat libs) | 23:40:46 |
John Ericson | that would be fantastic | 23:40:52 |
John Ericson | in general, if you did it once before, and we can read the code, I think we can "nixify" and merge it in nixpkgs really quick | 23:41:20 |
artemis | The way I did it basically was I used gentoo's crossdev tool to build a gcc targeting illumos (took a few tweaks to the gcc config to get it to work, right). Then I bundled up a ton of .so files I ripped off a real system and dropped them into the lib folder so linking against them would work. After that I was able to crossbuild OpenSSL (needed some build system fixes) and its dependencies, maybe a few other things, and with that environment I cross compiled a rust program and copied it over and it worked | 23:43:35 |
artemis | * The way I did it basically was I used gentoo's crossdev tool to build a gcc targeting illumos (took a few tweaks to the gcc config to get it to work right). Then I bundled up a ton of .so files I ripped off a real system and dropped them into the lib folder so linking against them would work. After that I was able to crossbuild OpenSSL (needed some build system fixes) and its dependencies, maybe a few other things, and with that environment I cross compiled a rust program and copied it over and it worked | 23:44:05 |
artemis | So I have an ebuild that uses my balls of .so and puts them in the right place, and also puts the headers where they need to be | 23:44:58 |
John Ericson | ah ok | 23:45:07 |
John Ericson | what did end up doing for the linker? | 23:45:32 |
artemis | To my surprise the gnu linker just worked | 23:45:47 |
John Ericson | oh, lol | 23:45:57 |
John Ericson | that helps | 23:45:59 |