[yocto] How to unset LD_PRELOAD environment viarable

Khem Raj raj.khem at gmail.com
Mon Dec 14 16:43:19 PST 2015


> On Dec 12, 2015, at 6:18 AM, Yang Liu <yliu.public at gmail.com> wrote:
> 
> 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?

you are trying to run a task outside pseudo. So you should unload pseudo using
export PSEUDO_UNLOAD=1


> 
> Thanks,
> Yang
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151214/c02f1db5/attachment.pgp>


More information about the yocto mailing list