summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/dri/Android.mk
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-11-29 16:38:54 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2016-01-22 11:55:34 +0000
commitf29a772a7e0ae5113822bcf14eb3bc87477c5fb1 (patch)
tree2c0f022fc0825fefb879ec03ab586134ed8b7683 /src/gallium/targets/dri/Android.mk
parent72fda2b710d864d23aec1e8f959147d05c5ff3f3 (diff)
downloadexternal_mesa3d-f29a772a7e0ae5113822bcf14eb3bc87477c5fb1.zip
external_mesa3d-f29a772a7e0ae5113822bcf14eb3bc87477c5fb1.tar.gz
external_mesa3d-f29a772a7e0ae5113822bcf14eb3bc87477c5fb1.tar.bz2
targets/dri: android: use WHOLE static libraries
By using whole static libraries the android buildsystem provides whole-archive (alike) solution. This means that we don't need to worry about the order of the static libraries and any reverse, recursive or circular dependencies that they have between one another. Without this the linker will discard any unused hunks of one library and we'll end up with unresolved symbols as those are required by another static library. This issue has become more prominent with the introduction of pipe-loader. Whole static libraries has been used in i915/i965 for a very long time, so we might do the same. v2: - Better commit message (Ilia) - Keep external dependencies as [normal] static libs (Mauro) Cc: mesa-stable@lists.freedesktop.org Cc: Mauro Rossi <issor.oruam@gmail.com> Reported-by: Mauro Rossi <issor.oruam@gmail.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/gallium/targets/dri/Android.mk')
-rw-r--r--src/gallium/targets/dri/Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/targets/dri/Android.mk b/src/gallium/targets/dri/Android.mk
index 2d9610e..9118fef 100644
--- a/src/gallium/targets/dri/Android.mk
+++ b/src/gallium/targets/dri/Android.mk
@@ -100,7 +100,7 @@ ifneq ($(filter nouveau r600g,$(MESA_GPU_DRIVERS)),)
LOCAL_SHARED_LIBRARIES += $(if $(filter true,$(MESA_LOLLIPOP_BUILD)),libc++,libstlport)
endif
-LOCAL_STATIC_LIBRARIES := \
+LOCAL_WHOLE_STATIC_LIBRARIES := \
$(gallium_DRIVERS) \
libmesa_st_dri \
libmesa_st_mesa \
@@ -112,6 +112,8 @@ LOCAL_STATIC_LIBRARIES := \
libmesa_util \
libmesa_loader \
+LOCAL_STATIC_LIBRARIES :=
+
ifeq ($(MESA_ENABLE_LLVM),true)
LOCAL_STATIC_LIBRARIES += \
libLLVMR600CodeGen \