feat: add crti note to self

This commit is contained in:
Himadri Bhattacharjee
2025-12-16 16:40:02 +05:30
parent 1b6e5605b2
commit a90286962a

View File

@@ -68,3 +68,14 @@ nix build -f ./builder.nix
```sh
readlink /nix/var/nix/profiles/system | cut -d- -f2
```
## crti.o not found
If you are compiling a program with C FFI bindings, you might encounter the following error:
```
/nix/store/dc9vaz50jg7mibk9xvqw5dqv89cxzla3-binutils-2.44/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
```
You need to add `stdenv.cc.cc.lib` to your flake's `buildInputs`.