Makefile: unexport O
authorGuido Martínez <guido@vanguardiasur.com.ar>
Sat, 25 Jul 2015 19:07:39 +0000 (16:07 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Jul 2015 13:06:55 +0000 (15:06 +0200)
commit2e32330c4a49f2422e88689b653f9d5ffb94077e
tree61fee98c5846ca0cf62bb313b31960d73a1c0d70
parentc44cf2cc97df1729577263d2b0cb5263e8cdc4c1
Makefile: unexport O

After bee5745ccc2 ("Makefile: don't depend on the umask"), any use
of "make O=<dir>" would leak $O into the enviroment for submakes,
and it's inherited by package makefiles. Some package makefiles have
protections to make sure they don't use the value of $O if it comes from
the enviroment (Linux), but some don't (uClibc).

This caused build failures when using a different output dir.

Fix this by unconditionally unexporting the O variable, since we never
need to have it set in the environment for packages, it should be only
internally used by BR.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile