[Mesa-dev] [PATCH] android: r600: fix libelf dependency

Jan Vesely jan.vesely at rutgers.edu
Sat Jun 17 08:45:53 UTC 2017


On Sat, 2017-06-17 at 10:26 +0200, Mauro Rossi wrote:
> Needed to avoid following building error:
> 
> external/mesa/src/gallium/drivers/r600/evergreen_compute.c:27:10:
> fatal error: 'gelf.h' file not found
>          ^
> 1 error generated.
> 
> Fixes: d96a210842 ("r600g,compute: provide local copy of functions from ac_binary.c")

Does wrapping the includes in ifdef HAVE_OPENCL fix the problem as
well?
configuration without opencl should be OK without libelf (we should do
that for automake build as well).

Jan


> ---
>  src/gallium/drivers/r600/Android.mk | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/gallium/drivers/r600/Android.mk b/src/gallium/drivers/r600/Android.mk
> index e1b0e986e1..ada2a7d4fa 100644
> --- a/src/gallium/drivers/r600/Android.mk
> +++ b/src/gallium/drivers/r600/Android.mk
> @@ -45,6 +45,9 @@ $(intermediates)/egd_tables.h: $(MESA_TOP)/src/gallium/drivers/r600/egd_tables.p
>  	@echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"
>  	$(hide) $(MESA_PYTHON2) $(MESA_TOP)/src/gallium/drivers/r600/egd_tables.py $(MESA_TOP)/src/gallium/drivers/r600/evergreend.h > $@
>  
> +LOCAL_WHOLE_STATIC_LIBRARIES := \
> +	libelf
> +
>  include $(GALLIUM_COMMON_MK)
>  include $(BUILD_STATIC_LIBRARY)
>  

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170617/468155ed/attachment.sig>


More information about the mesa-dev mailing list