libclcore.bc comes from prebuilts/sdk for unbundled projects.
This change also adds the NDK library path for unbundled builds.
Bug: 7419958
Change-Id: If22823c3890f5507d486e654a1e0296c06a2e239
diff --git a/core/definitions.mk b/core/definitions.mk
index 1b55564..746fbf9 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -829,7 +829,8 @@
$(dir $@)/$(notdir $(<:.bc=.o)) \
$(PRIVATE_COMPILER_RT) \
-o $@ -L prebuilts/gcc/ \
- -L $(TARGET_OUT_INTERMEDIATE_LIBRARIES) -lRSSupport -lm
+ -L $(TARGET_OUT_INTERMEDIATE_LIBRARIES) $(PRIVATE_LIBPATH) \
+ -lRSSupport -lm
endef
###########################################################