No, you just need to write your makefile correctly. libgpiod has a pkg-config file, so instead of hard-coding paths like /usr/lib (because you don't know that's where it is installed) just use pkg-config to get the flag:
gcc $(pkg-config --cflags --libs libgpiod) ... Ross On Tue, 4 Dec 2018 at 15:14, Georgi Georgiev <[email protected]> wrote: > > OK but. I can use SDKTARGETSYSROOT in my makefile but then it will fail in > yocto...So I can't have one makefile for yocto and command line build...I > found one tread for similar issue and I will take a look in > poky/meta/conf/bitbake.conf tomorrow. > > Georgi > > -----Original Message----- > From: Burton, Ross [mailto:[email protected]] > Sent: Tuesday, December 04, 2018 4:13 PM > To: Georgi Georgiev <[email protected]> > Cc: Yocto-mailing-list <[email protected]> > Subject: Re: [EXTERNAL] Re: [yocto] Missing dependencies in recipe-sysroot > > On Tue, 4 Dec 2018 at 14:02, Georgi Georgiev <[email protected]> > wrote: > > LIB := -L/usr/lib > > ^ don't do that. That's not where the libraries are. > > Ross -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
