How to include header file from stage-packages


My snap depend on libxml module, so i add “libxml2-dev” to stage-packages attribute of the part, then I can see that libxml2 was build and install on parts/xxx/install/usr/, but can you share me how to specify the header and library path in Makefile? thanks!

Does putting the library name in build-packages instead of stage-packages resolve the issue for you?