The environment files contained in the meta-toolchain lacks the following content: --with-libtool-sysroot is missing in the environment variable CONFIFURE_FLAGS --sysroot is missing in the CFLAGS & CXXFLAGS
1. Added libtool sysroot related param value into environment files. http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=f09f8f4aa32d134081a5bd8a5cff631a2e7935f7 2. Moved common code between meta-environment.bb and populate_sdk.bbclass into toolchain-script.bbclass. http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=6dc50b17360dfde34d01125a6f9747fcb530be1d 3. Set CONFIG_SITE to correct value for autoconf config site. http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=6f286cccbee282d4e26bbdb820cfb74e434cc900
Verified the --with-libtool-sysroot is added to CONFIGURE_FLAGS and --sysroot is added into CFLAGS & CXXFLAGS in the meta-environment files created by meta-environment recipe and meta-toolchain recipe.