summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-03-03 21:22:00 +0800
committerPo Lu <luangruo@yahoo.com>2023-03-03 21:22:00 +0800
commitece6d61301268df1ab486d77eacd09ea474a81a4 (patch)
treee3a44b65b1ff60482e2b7a283f46e356616aed7c /cross
parent468e8d7322e4250e68f12cedf88ce4d39193c0e5 (diff)
downloademacs-ece6d61301268df1ab486d77eacd09ea474a81a4.tar.gz
Fix out-of-tree builds with native dependencies
* cross/ndk-build/ndk-build-shared-library.mk: * cross/ndk-build/ndk-build-static-library.mk: Include ndk-resolve.mk in srcdir.
Diffstat (limited to 'cross')
-rw-r--r--cross/ndk-build/ndk-build-shared-library.mk2
-rw-r--r--cross/ndk-build/ndk-build-static-library.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/cross/ndk-build/ndk-build-shared-library.mk b/cross/ndk-build/ndk-build-shared-library.mk
index 2209e94d359..b7a64865e38 100644
--- a/cross/ndk-build/ndk-build-shared-library.mk
+++ b/cross/ndk-build/ndk-build-shared-library.mk
@@ -140,7 +140,7 @@ LOCAL_MODULE_FILENAME := $(LOCAL_MODULE_FILENAME).so
# Record this module's dependencies and exported includes and CFLAGS,
# and then add that of its dependencies.
-include ndk-resolve.mk
+include $(srcdir)/ndk-resolve.mk
# Then define rules to build all objects.
ALL_SOURCE_FILES := $(LOCAL_SRC_FILES) $(LOCAL_SRC_FILES_$(NDK_BUILD_ARCH))
diff --git a/cross/ndk-build/ndk-build-static-library.mk b/cross/ndk-build/ndk-build-static-library.mk
index 04aea49bffe..a597bc0d691 100644
--- a/cross/ndk-build/ndk-build-static-library.mk
+++ b/cross/ndk-build/ndk-build-static-library.mk
@@ -121,7 +121,7 @@ LOCAL_MODULE_FILENAME := $(LOCAL_MODULE_FILENAME).a
# Record this module's dependencies and exported includes and CFLAGS,
# and then add that of its dependencies.
-include ndk-resolve.mk
+include $(srcdir)/ndk-resolve.mk
# Then define rules to build all objects.
ALL_SOURCE_FILES := $(LOCAL_SRC_FILES) $(LOCAL_SRC_FILES_$(NDK_BUILD_ARCH))