[Mesa-dev] [PATCH] egl/dri: link directly to libglapi.so
Emil Velikov
emil.l.velikov at gmail.com
Tue Sep 19 18:28:22 UTC 2017
On 19 September 2017 at 18:52, Rob Herring <robh at kernel.org> wrote:
> 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?
>
Can/will do - copy/paste was a bit quicker.
-Emil
More information about the mesa-dev
mailing list