OpenWrt Forum Archive

Topic: What does the error "someone does not honour COPTS correctly" mean

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

This has been bugging me for a while and I can't find where its generated during the compilation of all the objects in a package I created myself.

I'd really like it to go away (properly, i.e. not have the error at all).

Cheers

It usually means that your Makefile overrides CFLAGS instead of appending to it.

jow wrote:

It usually means that your Makefile overrides CFLAGS instead of appending to it.

Found it - thanks

I wasn't setting CFLAGS to TARGET_CFLAGS in the top level package makefile although I had the lower project level makefile appending to it correctly. I haven't looked at the values passed down from TARGET_CFLAGS but my executable has now shrunk from 165k to 133k so I'm a happy camper smile

Cheers

The discussion might have continued from here.