Add new flags CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD
authorAndrew Hsieh <andrewhsieh@google.com>
Thu, 17 Jan 2013 17:00:38 +0000 (09:00 -0800)
committerAndrew Hsieh <andrewhsieh@google.com>
Thu, 17 Jan 2013 17:06:02 +0000 (09:06 -0800)
commit6d9baa3039ea7413169b6d059fa64bbdc0e054b7
treec42e2940e2841b1f5c75d5bf9b1de835e7f9152d
parentff90ad8552285bacc0569276dc7aa2a623d2cb95
Add new flags CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD

In canadian cross build CFLAGS/LDFLAGS may contain flags good
for "host" but not valid for "build".  Define new flags.  eg.

  # flags common to both "host" and "build"
  CFLAGS_FOR_BUILD="-O2 -s -Wno-error"
  LDFLAGS_FOR_BUILD=

  # additional flags for "host"
  CFLAGS="$CFLAGS_FOR_BUILD $HOST_CFLAGS"
  LDFLAGS="$LDFLAGS_FOR_BUILD $HOST_LDFLAGS"

Change-Id: I723d4fa2b62a3945922a027555f30997a66cce48
Makefile.in