diff --git a/jni/magiskboot/Android.mk b/jni/magiskboot/Android.mk index e2118f929..9976c4fdc 100644 --- a/jni/magiskboot/Android.mk +++ b/jni/magiskboot/Android.mk @@ -2,15 +2,15 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := magiskboot -LOCAL_STATIC_LIBRARIES := liblzma liblz4 libbz2 +LOCAL_STATIC_LIBRARIES := libz liblzma liblz4 libbz2 LOCAL_C_INCLUDES := \ jni/ndk-compression/zlib/ \ jni/ndk-compression/xz/src/liblzma/api/ \ jni/ndk-compression/lz4/lib/ \ jni/ndk-compression/bzip2/ -LOCAL_SRC_FILES := main.c unpack.c repack.c hexpatch.c parseimg.c compress.c utils.c cpio.c -LOCAL_LDLIBS += -lz +LOCAL_SRC_FILES := main.c unpack.c repack.c hexpatch.c parseimg.c compress.c utils.c +LOCAL_CFLAGS += -DZLIB_CONST include $(BUILD_EXECUTABLE) include jni/ndk-compression/zlib/Android.mk diff --git a/jni/ndk-compression b/jni/ndk-compression index ca5279dea..b0579533d 160000 --- a/jni/ndk-compression +++ b/jni/ndk-compression @@ -1 +1 @@ -Subproject commit ca5279deaa9de6ac695af1c710353d616428e229 +Subproject commit b0579533d17f527137633825724231cafb245ebd