[yocto] dev package non-sym link

Alexander Kanavin alexander.kanavin at linux.intel.com
Fri Dec 1 00:12:34 PST 2017


On 11/30/2017 11:46 PM, Rail Shafigulin wrote:
> do_install () {
>    install -d ${D}${libdir}/
>    install -m 0755 ${S}/libAnokiWave.so.1.0.1 ${D}${libdir}
>    ln -s ${D}${libdir}/libAnokiWave.so.1.0.1 ${D}${libdir}/libAnokiwave.so.1
>    ln -s ${D}${libdir}/libAnokiWave.so.1 ${D}${libdir}/libAnokiwave.so
> }

You need to call 'ln -sr', then you'll get relative symlinks. Better 
yet, add some build system support to the project (meson, cmake), then 
it'll take care of these things for you.

Alex



More information about the yocto mailing list