imgpatch: Compile with ZLIB_CONST defined.
So z_stream.next_in takes pointer to const data. Test: mmma bootable/recovery/applypatch Change-Id: If269b766a7c84fa2f67424ee61ba5afab0159261
This commit is contained in:
@@ -35,7 +35,9 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
libcrypto \
|
||||
libbz \
|
||||
libz
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := \
|
||||
-DZLIB_CONST \
|
||||
-Werror
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
# libimgpatch (static library)
|
||||
@@ -54,7 +56,9 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
libcrypto \
|
||||
libbz \
|
||||
libz
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := \
|
||||
-DZLIB_CONST \
|
||||
-Werror
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
# libimgpatch (host static library)
|
||||
@@ -74,7 +78,9 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
libcrypto \
|
||||
libbz \
|
||||
libz
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := \
|
||||
-DZLIB_CONST \
|
||||
-Werror
|
||||
include $(BUILD_HOST_STATIC_LIBRARY)
|
||||
|
||||
# libapplypatch_modes (static library)
|
||||
|
||||
Reference in New Issue
Block a user