Hi, I'm trying to build an SDK for an image that uses musl. The problem is that the environment-setup script in the SDK lacks the -mmusl compiler flag, so binaries produced by sourcing the environment and running $CC will not run on the image.
As far as I can see, the flag should have been added by this line in toolchain-scripts.bbclass: TARGET_CC_ARCH_append_libc-musl = " -mmusl" However, the libc-musl override is not set when building meta-environment, which I've tracked down to this snippet from cross-canadian.bbclass: NATIVESDKLIBC ?= "libc-glibc" LIBCOVERRIDE = ":${NATIVESDKLIBC}" I had successfully been using a similar setup based on thud, which was before those two lines were added. What's the correct fix here? What's the purpose of changing LIBCOVERRIDE in cross-canadian.bbclass? Thanks Dominic
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#137709): https://lists.openembedded.org/g/openembedded-core/message/137709 Mute This Topic: https://lists.openembedded.org/mt/73396943/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/leave/8023207/1426099254/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-