[yocto] How to unset LD_PRELOAD environment viarable

Yang Liu yliu.public at gmail.com
Sat Dec 12 06:18:09 PST 2015


Hi, All,

I would like to unset the LD_PRELOAD variable when I try to compile my
module using go cross compiler with CGO enabled.

I tried to add "unset LD_PRELOAD" to my do_compile function in bb file or I
did it manually in devshell, the LD_PRELOAD is still set
to LD_PRELOAD=libpseudo.so.

I tried other env variable, unset is working. Any one know what's the
reason? Is there any way I can get around with this?

Thanks,
Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151212/466cc76a/attachment.html>


More information about the yocto mailing list