tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: All packages that use Meson are built with -O0



Am 11.08.24 um 21:17 schrieb Greg Troxel:

Does upstream document that they cannot be built with gcc?

Yep, this exactly. GCC does not support objc properly.

No, we want CFLAGS from the environment so when a user sets it, it does
what was asked, just like the other build systems.

I think Meson has the philosophy that you should not change CFLAGS, but instead build variables and then it constructs the CFLAGS from that. The idea being that different compilers have different flags, you just tell Meson what you want (e.g. -Ddebug, -Db_pie etc.) and it does the right thing for you. There might be a way to force CFLAGS being passed to the compiler, but I wowuld expect that to go horribly wrong as then Meson doesn't know about those and might add conflicting flags.

--
Jonathan


Home | Main Index | Thread Index | Old Index