mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
Android: correct libz dependency
Commit6facb0c0("android: fix libz dynamic library dependencies") unconditionally adds libz as a dependency to all shared libraries. That is unnecessary. Commit85a9b1b5introduced libz as a dependency to libmesa_util. So only the shared libraries that use libmesa_util need libz. Fix Android Lollipop build by adding the include path of zlib to libmesa_util explicitly instead of getting the path implicitly from zlib since it doesn't export the include path in Lollipop. Fixes:6facb0c0"android: fix libz dynamic library dependencies" Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Rob Herring <robh@kernel.org> (cherry picked from commitbfc0c23843)
This commit is contained in:
parent
d6439cb297
commit
5cace16ac6
5 changed files with 6 additions and 7 deletions
|
|
@ -116,7 +116,3 @@ endif
|
|||
|
||||
# Quiet down the build system and remove any .h files from the sources
|
||||
LOCAL_SRC_FILES := $(patsubst %.h, , $(LOCAL_SRC_FILES))
|
||||
|
||||
ifneq ($(LOCAL_IS_HOST_MODULE),true)
|
||||
LOCAL_SHARED_LIBRARIES += libz
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ LOCAL_CFLAGS :=
|
|||
LOCAL_SHARED_LIBRARIES := \
|
||||
libdl \
|
||||
libglapi \
|
||||
libexpat
|
||||
libexpat \
|
||||
libz
|
||||
|
||||
ifneq ($(filter freedreno,$(MESA_GPU_DRIVERS)),)
|
||||
LOCAL_CFLAGS += -DGALLIUM_FREEDRENO
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
|
|||
libmesa_intel_compiler \
|
||||
libmesa_anv_entrypoints
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libdrm
|
||||
LOCAL_SHARED_LIBRARIES := libdrm libz
|
||||
|
||||
include $(MESA_COMMON_MK)
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ MESA_DRI_SHARED_LIBRARIES := \
|
|||
libdl \
|
||||
libexpat \
|
||||
libglapi \
|
||||
liblog
|
||||
liblog \
|
||||
libz
|
||||
|
||||
#-----------------------------------------------
|
||||
# Build drivers and libmesa_dri_common
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ LOCAL_SRC_FILES := \
|
|||
$(MESA_UTIL_FILES)
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
external/zlib \
|
||||
$(MESA_TOP)/src/mesa \
|
||||
$(MESA_TOP)/src/mapi \
|
||||
$(MESA_TOP)/src/gallium/include \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue