I am working on a rust project that uses bindgen to link some c++ headers.
I am able to compile the project in a development shell, but only if i use a absolute path to a library. Unfortunately some definitions from glibc are added to the generated binding.
I can solve the issue by adding the following line to the build.rs to block their inclusion
.blocklist_file(“/nix/store/hkj250rjsvxcbr31fr1v81cv88cdfp4l-glibc-2.37-8-dev/include/.*”)
I would like to know: what is the best way to pass the glibc path to bindgen?