[yocto] How to reference /usr/include

Chris Tapp opensource at keylevel.com
Sat Feb 19 16:13:49 PST 2011


I'm trying to make a simple recipe that uses libxml. However, the  
headers for this are in libxlm2/libxml, so I need to add an include  
path.

I can get this to work using an absolute path, as shown below:

do_compile() {
    ${CC} -I/usr/include/libxml2 helloworld.c -o helloworld
}

However, this isn't good as it uses /usr. How should I do this? I've  
tried to find a ${...} to use, but I've not found anything that works.

Chris Tapp

opensource at keylevel.com
www.keylevel.com






More information about the yocto mailing list