From 47802863463ccb1fe9afe640f0e08c2223dcf338 Mon Sep 17 00:00:00 2001 From: Vladimir Oltean Date: Sun, 22 Jul 2018 13:31:57 +0300 Subject: prebuilt: resolve libext2_misc.so dependency for mke2fs * Following error while running mke2fs in TWRP compiled in 8.1+ tree: libc: CANNOT LINK EXECUTABLE "mke2fs": library "libext2_misc.so" not found Change-Id: I786f325229167dbd0d1d5f2a1ea95e9fe15a227e Signed-off-by: Vladimir Oltean --- prebuilt/Android.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prebuilt') diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk index 8471ffba1..e28becd47 100644 --- a/prebuilt/Android.mk +++ b/prebuilt/Android.mk @@ -63,6 +63,9 @@ RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_e2p.so RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2fs.so RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_profile.so RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_uuid.so +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?),0) + RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_misc.so +endif ifneq ($(wildcard external/e2fsprogs/lib/quota/Android.mk),) RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext2_quota.so endif -- cgit v1.2.3