On 12 Jun 2024, at 15:08, Kaiwan N Billimoria <kaiwan.billimo...@gmail.com> 
wrote:
> Ok, great, I now exported it..
> And yes, it _did_ become visible in the Makefile.
> *However*, it didn't make any material difference - both binaries are
> again about the same size, and both show (via 'file')
> 'with debug_info, not stripped'. So, my point is, even explicitly
> passing certain CFLAGS_FOO to the custom Makefile via
> the recipe doesn't make any real difference? That's not great, right...
> What if one must pass some required flag? Typically, and correct me if
> i'm wrong, the project Makefile will specify it but
> bitbake doesn't seem to want to obey the Makefile - it wants to
> overrule it regardless?? Not great, IMHO.. that is, if I'm
> understanding this correctly.

Did you check the log.do_compile to see what is actually being executed?  That 
will tell you easily where you’re going wrong.  Remember all bitbake is doing 
here is running ‘make’.  If you want to pass specific flags, then pass specific 
flags (either by adding them to EXTRA_OEMAKE, which will get passed to make 
calls automatically, or by writing your own do_compile() that calls make).

FWIW, my golden rule is that Makefiles Are Terrible and recipes that build them 
are always annoying, because Make has terrible semantics and writing a Makefile 
that behaves are you’d expect is surprisingly difficult.

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63332): https://lists.yoctoproject.org/g/yocto/message/63332
Mute This Topic: https://lists.yoctoproject.org/mt/106629727/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to