[Mesa-dev] [PATCH] egl/dri: link directly to libglapi.so

Rob Herring robh at kernel.org
Tue Sep 19 17:52:13 UTC 2017


On Tue, Sep 19, 2017 at 12:19 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> In order to build EGL, one has to use shared glapi - libglapi.so.
>
> Thus the dlopen/dlsym dance is no longer needed and we can link to the
> library directly.
>
> This allows us to remove a handful of platform specific names of the
> library.
>
> Cc: Jonathan Gray <jsg at jsg.id.au>
> Cc: Jon Turney <jon.turney at dronecode.org.uk>
> Cc: Julien Isorce <julien.isorce at gmail.com>
> Cc: Rob Herring <robh at kernel.org>
> Cc: Tomasz Figa <tfiga at chromium.org>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  src/egl/Android.mk              |  2 ++
>  src/egl/Makefile.am             |  2 ++
>  src/egl/drivers/dri2/egl_dri2.c | 40 ++++------------------------------------
>  src/egl/drivers/dri2/egl_dri2.h |  2 --
>  4 files changed, 8 insertions(+), 38 deletions(-)
>
> diff --git a/src/egl/Android.mk b/src/egl/Android.mk
> index d7a6e88918f..4c112c20be2 100644
> --- a/src/egl/Android.mk
> +++ b/src/egl/Android.mk
> @@ -44,6 +44,7 @@ LOCAL_CFLAGS := \
>         -DHAVE_ANDROID_PLATFORM
>
>  LOCAL_C_INCLUDES := \
> +       $(MESA_TOP)/src/mapi \

Can't libglapi export this include path?

>         $(MESA_TOP)/src/egl/main \
>         $(MESA_TOP)/src/egl/drivers/dri2
>
> @@ -53,6 +54,7 @@ LOCAL_STATIC_LIBRARIES := \
>
>  LOCAL_SHARED_LIBRARIES := \
>         libdl \
> +       libglapi \
>         libhardware \
>         liblog \
>         libcutils \


More information about the mesa-dev mailing list