diff --git a/core/config.mk b/core/config.mk index 822dc9d0a..945995237 100644 --- a/core/config.mk +++ b/core/config.mk @@ -825,10 +825,10 @@ endif RS_PREBUILT_CLCORE := prebuilts/sdk/renderscript/lib/$(TARGET_ARCH)/librsrt_$(TARGET_ARCH).bc RS_PREBUILT_COMPILER_RT := prebuilts/sdk/renderscript/lib/$(TARGET_ARCH)/libcompiler_rt.a ifeq (true,$(TARGET_IS_64_BIT)) -RS_PREBUILT_LIBPATH := -L prebuilts/ndk/current/platforms/android-21/arch-$(TARGET_ARCH)/usr/lib64 \ - -L prebuilts/ndk/current/platforms/android-21/arch-$(TARGET_ARCH)/usr/lib +RS_PREBUILT_LIBPATH := -L prebuilts/ndk/r10/platforms/android-21/arch-$(TARGET_ARCH)/usr/lib64 \ + -L prebuilts/ndk/r10/platforms/android-21/arch-$(TARGET_ARCH)/usr/lib else -RS_PREBUILT_LIBPATH := -L prebuilts/ndk/current/platforms/android-9/arch-$(TARGET_ARCH)/usr/lib +RS_PREBUILT_LIBPATH := -L prebuilts/ndk/r10/platforms/android-9/arch-$(TARGET_ARCH)/usr/lib endif # API Level lists for Renderscript Compat lib. diff --git a/core/definitions.mk b/core/definitions.mk index 9d5d92a28..5ec0d2e10 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1049,8 +1049,9 @@ $(hide) $(PRIVATE_CXX) -shared -Wl,-soname,$(notdir $@) -nostdlib \ $(dir $@)/$(notdir $(<:.bc=.o)) \ $(RS_PREBUILT_COMPILER_RT) \ -o $@ $(TARGET_GLOBAL_LDFLAGS) -Wl,--hash-style=sysv -L prebuilts/gcc/ \ - $(RS_PREBUILT_LIBPATH) -L $(TARGET_OUT_INTERMEDIATE_LIBRARIES) \ - -lRSSupport -lm -lc + $(RS_PREBUILT_LIBPATH) \ + $(call intermediates-dir-for,SHARED_LIBRARIES,libRSSupport)/libRSSupport.so \ + -lm -lc endef ###########################################################