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

Changeset 259755 in webkit


Ignore:
Timestamp:
Apr 8, 2020, 2:06:36 PM (6 years ago)
Author:
stephan.szabo@sony.com
Message:

[PlayStation] Update import of libdl stubs for new Angle dladdr use
https://bugs.webkit.org/show_bug.cgi?id=210200

Reviewed by Don Olmstead.

  • Source/cmake/OptionsPlayStation.cmake:

Use find_package to get libdl wrappers on playstation, include
them in both executables and shared libraries.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r259726 r259755  
     12020-04-08  Stephan Szabo  <stephan.szabo@sony.com>
     2
     3        [PlayStation] Update import of libdl stubs for new Angle dladdr use
     4        https://bugs.webkit.org/show_bug.cgi?id=210200
     5
     6        Reviewed by Don Olmstead.
     7
     8        * Source/cmake/OptionsPlayStation.cmake:
     9        Use find_package to get libdl wrappers on playstation, include
     10        them in both executables and shared libraries.
     11
    1122020-04-08  Truitt Savell  <tsavell@apple.com>
    213
  • trunk/Source/cmake/OptionsPlayStation.cmake

    r259606 r259755  
    189189endif ()
    190190
    191 find_library(DL_LIBRARY NAMES dl PATHS ${WEBKIT_LIBRARIES_DIR}/lib)
    192 if (DL_LIBRARY)
    193     add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:${DL_LIBRARY}>")
    194     add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlopen>")
    195     add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlclose>")
    196     add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlerror>")
    197     add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlsym>")
     191find_package(libdl)
     192if (TARGET libdl::dl)
     193    add_link_options("$<$<OR:$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>,$<STREQUAL:$<TARGET_PROPERTY:TYPE>,SHARED_LIBRARY>>:$<TARGET_PROPERTY:libdl::dl,IMPORTED_LOCATION_RELEASE>>")
     194    add_link_options("$<$<OR:$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>,$<STREQUAL:$<TARGET_PROPERTY:TYPE>,SHARED_LIBRARY>>:$<TARGET_PROPERTY:libdl::dl,INTERFACE_LINK_OPTIONS>>")
    198195endif ()
    199196
Note: See TracChangeset for help on using the changeset viewer.