Changeset 195174 in webkit


Ignore:
Timestamp:
Jan 16, 2016 12:50:22 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

.:
[GTK] Use -Wl,-all_load on darwin to include contents of all static archives

https://bugs.webkit.org/show_bug.cgi?id=153117

Patch by Jeremy Huddleston Sequoia <jeremyhu@apple.com> on 2016-01-16
Reviewed by Michael Catanzaro.

  • Source/cmake/OptionsGTK.cmake:

Source/WebKit2:
Remove a now-irrelevant darwin build hack
https://bugs.webkit.org/show_bug.cgi?id=153117

Patch by Jeremy Huddleston Sequoia <jeremyhu@apple.com> on 2016-01-16
Reviewed by Michael Catanzaro.

  • PlatformGTK.cmake:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r195009 r195174  
     12016-01-16  Jeremy Huddleston Sequoia  <jeremyhu@apple.com>
     2
     3        [GTK] Use -Wl,-all_load on darwin to include contents of all static archives
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=153117
     6
     7        Reviewed by Michael Catanzaro.
     8
     9        * Source/cmake/OptionsGTK.cmake:
     10
    1112016-01-13  Carlos Garcia Campos  <cgarcia@igalia.com>
    212
  • trunk/Source/WebKit2/ChangeLog

    r195171 r195174  
     12016-01-16  Jeremy Huddleston Sequoia  <jeremyhu@apple.com>
     2
     3        Remove a now-irrelevant darwin build hack
     4        https://bugs.webkit.org/show_bug.cgi?id=153117
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * PlatformGTK.cmake:
     9
    1102016-01-16  Jon Honeycutt  <jhoneycutt@apple.com>
    211
  • trunk/Source/WebKit2/PlatformGTK.cmake

    r195155 r195174  
    939939)
    940940
    941 # Manually add some libraries on OSX because we don't have the --whole-archive flag
    942 if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
    943     set(INTROSPECTION_ADDITIONAL_LIBRARIES --library=c++)
    944     set(INTROSPECTION_ADDITIONAL_LDFLAGS -lGObjectDOMBindings)
    945 endif ()
    946 
    947941add_custom_command(
    948942    OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
  • trunk/Source/cmake/OptionsGTK.cmake

    r194988 r195174  
    472472# a list of convenience libraries. This can lead to missing symbols in the final output.
    473473# We add --whole-archive to all libraries manually to prevent the linker from trimming
    474 # symbols that we actually need later. (--whole-archive isn't an option on XCode's
    475 # linker, though.)
     474# symbols that we actually need later. With ld64 on darwin, we use -all_load instead.
    476475macro(ADD_WHOLE_ARCHIVE_TO_LIBRARIES _list_name)
    477     if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
     476    if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
     477        list(APPEND ${_list_name} -Wl,-all_load)
     478    else ()
    478479        foreach (library IN LISTS ${_list_name})
    479480          list(APPEND ${_list_name}_TMP -Wl,--whole-archive ${library} -Wl,--no-whole-archive)
Note: See TracChangeset for help on using the changeset viewer.