libnss: don't use target CFLAGS with host toolchain
authorBaruch Siach <baruch@tkos.co.il>
Tue, 1 Jul 2014 03:36:56 +0000 (06:36 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 1 Jul 2014 10:57:02 +0000 (12:57 +0200)
commitea7bb05c7b3e7a4e45ff1dc5fdedb6b073d62619
tree22b9f110d3fb18eece0cc623d78df18e5243de02
parent6c526bbd4fdecf60af2f5baee19e0dd2778d1bae
libnss: don't use target CFLAGS with host toolchain

The OPTIMIZER variable is used to construct CFLAGS for host toolchain.
This breaks the build since we set it to TARGET_CFLAGS, and these may not be
supported by host toolchain. Augment the cross-compile patch to handle
OPTIMIZER so that we can initialize it to TARGET_OPTIMIZER, and override it
when used with host toolchain.

Fixes:
http://autobuild.buildroot.net/results/3f1/3f1afc1b58cb6fe53c438b55f169e2a78238806d/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libnss/libnss-0001-cross-compile.patch
package/libnss/libnss.mk