Oh, great! Thanks!

On 5/15/21 12:16 PM, Brad Smith wrote:
On May 15, 2021 12:14:12 p.m. Aisha Tammy <[email protected]> wrote:

Hi all,

It seems like the meson.port.mk adds to CONFIGURE_ENV +=
CXXFLAGS="${CXXFLAGS}" and when I want to add CONFIGURE_ENV =
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}" it gets overriden by the
meson.port.mk to go back to -O2 -pipe and then the has_header functions
start failing during the configure phase.

After looking at the code in the meson.port.mk the best solution to come
to my mind is to define CXXFLAGS += -I${LOCALBASE}/include outside of
CONFIGURE_ENV and then it can be picked up by MODMESON_CONFIGURE_ENV but
this feels wrong.

It's not wrong. That's the way it should be done.

Sent with Aqua Mail for Android
https://www.mobisystems.com/aqua-mail

Reply via email to