libchrome: Fix for building with asan.

Introduce USE_ASAN variable which should be set by libchrome ebuild.
Do not use the linker flags "-z,defs" when USE_ASAN is set since
it is not supported by address sanitizer.

BUG=chromium:809148
TEST=libchrome builds with asan.

Change-Id: I01565d5912cf8988213993110e606aa67a516781
Reviewed-on: https://chromium-review.googlesource.com/927104
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Luis Hector Chavez <lhchavez@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed