⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 278768 in webkit


Ignore:
Timestamp:
Jun 11, 2021, 11:08:32 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

ANGLE EGL and GLES libraries should link with lib dl.
https://bugs.webkit.org/show_bug.cgi?id=226920

Patch by Eleni Maria Stea <hikiko> on 2021-06-11
Reviewed by Kenneth Russell.

GLES and EGL that are generated from ANGLE should link
with libdl because they use dlsym and dlopen. Also,
with the updated CMakeLists.txt we can safely link with libEGL
when USE_ANGLE_WEBGL is set because the symbols of EGL are now
found.

  • CMakeLists.txt:
Location:
trunk/Source/ThirdParty/ANGLE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/ANGLE/CMakeLists.txt

    r278726 r278768  
    152152        LIBGLESV2_IMPLEMENTATION
    153153    )
    154     target_link_libraries(GLESv2 PRIVATE ${ANGLEGLESv2_LIBRARIES})
     154
     155    target_link_libraries(GLESv2 PRIVATE ${ANGLEGLESv2_LIBRARIES} ${CMAKE_DL_LIBS})
     156
    155157    if (WIN32)
    156158        # Output library name according to the .def
     
    175177            EGLAPI=
    176178        )
    177         target_link_libraries(EGL PRIVATE GLESv2)
     179
     180        target_link_libraries(EGL PRIVATE GLESv2 ${CMAKE_DL_LIBS})
     181
    178182        set_target_properties(EGL PROPERTIES LINKER_LANGUAGE CXX)
    179183        if (WIN32)
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r278726 r278768  
     12021-06-11  Eleni Maria Stea  <estea@igalia.com>
     2
     3        ANGLE EGL and GLES libraries should link with lib dl.
     4        https://bugs.webkit.org/show_bug.cgi?id=226920
     5
     6        Reviewed by Kenneth Russell.
     7
     8        GLES and EGL that are generated from ANGLE should link
     9        with libdl because they use dlsym and dlopen. Also,
     10        with the updated CMakeLists.txt we can safely link with libEGL
     11        when USE_ANGLE_WEBGL is set because the symbols of EGL are now
     12        found.
     13
     14        * CMakeLists.txt:
     15
    1162021-06-10  Don Olmstead  <don.olmstead@sony.com>
    217
Note: See TracChangeset for help on using the changeset viewer.