[oe] OT: cross compiling: `?=` or `+=` for `INCLUDES`
Paul Menzel
paulepanter at users.sourceforge.net
Sun Dec 12 15:53:56 UTC 2010
Dear OE folks,
what is the best practice for Makefiles with `INCLUDES`? On the VDR list
it was requested to use `+=` instead of `?=`. [1]
However, in the Makefile changes:
-INCLUDES = -I/usr/include/freetype2
+INCLUDES ?= -I/usr/include/freetype2
Shouldn't that be += instead of ?=.
In my case, my IDE sets INCLUDES with some custom stuff. Therefore the
Makefile does not touch INCLUDES any more and I get an error.
Is it common when changing `INCLUDES` that one has to take care about
this by oneself, i. e. by adding `-I/usr/include/freetype2` to
`INCLUDES`? Or is there a better way?
Thanks,
Paul
[1] http://www.linuxtv.org/pipermail/vdr/2010-November/023953.html
[2] http://www.linuxtv.org/pipermail/vdr/2010-December/024019.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20101212/15de7417/attachment-0002.sig>
More information about the Openembedded-devel
mailing list