summaryrefslogtreecommitdiffstats
path: root/core/config_sanitizers.mk
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-04-28 14:55:50 -0700
committerEvgenii Stepanov <eugenis@google.com>2015-05-12 14:04:55 -0700
commitbdd8ca06044ebd31986cac62f18af42e87de3a54 (patch)
treec8e3aba4b1ad3be604c06312ba092fbbf4f73369 /core/config_sanitizers.mk
parent6708b6c99cbc61c7fd2bdb51b7f1ddc5b53943ec (diff)
downloadbuild-bdd8ca06044ebd31986cac62f18af42e87de3a54.zip
build-bdd8ca06044ebd31986cac62f18af42e87de3a54.tar.gz
build-bdd8ca06044ebd31986cac62f18af42e87de3a54.tar.bz2
--no-as-needed needs -Wl.
Not sure why my checkbuild passed. Change-Id: Idd0f477faebf0b7d79998c8a86610728c2c8cc5d
Diffstat (limited to 'core/config_sanitizers.mk')
-rw-r--r--core/config_sanitizers.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk
index c3009eb..7eb1c89 100644
--- a/core/config_sanitizers.mk
+++ b/core/config_sanitizers.mk
@@ -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) \