Hello Jupiter,
Yocto is meant for distribution of customized Linux distributions rather than development, so sometimes it may be hard to make sure that changes on the sources or libraries are present on the final build.
You would need to run a clean and then try baking again. Even so, it could be that these changes are being overridden by the default configuration. I would recommend cross compiling outside of Yocto using the toolchain and test it on your board before committing by adding these settings on a recipe or image append.
I hope this helps!
Regards,