Open copumpkin opened 9 years ago
I just pushed an impure libobjc so we can build ruby properly (and libusb), but let's leave this ticket open until we can actually build libobjc.
Sounds good, thanks!
https://github.com/copumpkin/nixpkgs/commit/f36f13010910a19a22ba82d09540008ff03ec274 provides a pure libobjc, but we can't use it :frowning:
The basic issue is kind of worrying/annoying: objc maintains global state about what classes are loaded somewhere, and if something gets both our libobjc and the one transitively depended on by libSystem, it warns about duplicate class definitions and then segfaults. Too tired to think about how to address that cleanly. Might have to get really clever, or give up on this sort of thing.
Right now we patch it not to ask for libobjc, but the nicer thing would be to just provide it. This means we'd need to build it, of course...