--no-as-needed needs -Wl.

Not sure why my checkbuild passed.

Change-Id: Idd0f477faebf0b7d79998c8a86610728c2c8cc5d
This commit is contained in:
Dan Albert 2015-04-28 14:55:50 -07:00 committed by Evgenii Stepanov
parent 6708b6c99c
commit bdd8ca0604
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ ifneq ($(filter address,$(my_sanitize)),)
# -nodefaultlibs (provided with libc++) prevents the driver from linking
# libraries needed with -fsanitize=address. http://b/18650275 (WAI)
my_ldlibs += -lm -ldl -lpthread
my_ldflags += --no-as-needed
my_ldflags += -Wl,--no-as-needed
else
# ASan runtime library must be the first in the link order.
my_shared_libraries := $($(LOCAL_2ND_ARCH_VAR_PREFIX)ADDRESS_SANITIZER_RUNTIME_LIBRARY) \