FYI,

I solved the CFLAGS mystery:

On 4 February 2016 at 10:59, Andrew Cagney <[email protected]> wrote:

> ifdef CROSS_COMPILE
> DEFAULT_GMAKE_FLAGS += \
>         NATIVE_CC='$(HOST_CC)' \
>         CC='$(CC)' \
>         CCC='$(CXX)' \
>         LINK='$(LD)' \
>         AS='$(AS)' \
>         AR='$(AR) $(AR_FLAGS:$@=$$@)' \
>         RANLIB='$(RANLIB)' \
>         RC='$(RC) $(RCFLAGS)' \
>         OS_ARCH='$(OS_ARCH)' \
>         OS_TEST='$(OS_TEST)' \
>         CPU_ARCH='$(TARGET_CPU)' \
>         $(NULL)

If the cross/native compiler's cflags are passed in using OS_CFLAGS
and not simply CFLAGS vis:

OS_CFLAGS=... \
NATIVE_FLAGS=... \

then this almost works:

> ifdef NATIVE_FLAGS
> OS_CFLAGS=$(NATIVE_FLAGS)
> endif

It still needs the "override" and should probably use the more robust
check (for 'NATIVE_CFLAGS='):

ifneq ($(origin NATIVE_FLAGS),undefined)

Andrew
-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to