Changeset 279925 in webkit


Ignore:
Timestamp:
Jul 14, 2021 3:12:05 PM (3 years ago)
Author:
achristensen@apple.com
Message:

Link against Catalyst ANGLE-shared.dylib when linking Catalyst WebCore.framework
https://bugs.webkit.org/show_bug.cgi?id=227965
<rdar://76284889>

Reviewed by Tim Horton.

r274742 put the dylib into the correct location, but when linking WebCore we are still looking in the
location of the non-Catalyst dylib, which happens to have all the symbols we are looking for so linking succeeds.
At runtime, though, we realize we are opening the wrong dylib and bad things happen.

The solution is to look in the Catalyst WebCore framework directory when WK_USE_ALTERNATE_FRAMEWORKS_DIR is YES,
which is only in the Catalyst build.

  • Configurations/WebCore.xcconfig:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r279924 r279925  
     12021-07-14  Alex Christensen  <achristensen@webkit.org>
     2
     3        Link against Catalyst ANGLE-shared.dylib when linking Catalyst WebCore.framework
     4        https://bugs.webkit.org/show_bug.cgi?id=227965
     5        <rdar://76284889>
     6
     7        Reviewed by Tim Horton.
     8
     9        r274742 put the dylib into the correct location, but when linking WebCore we are still looking in the
     10        location of the non-Catalyst dylib, which happens to have all the symbols we are looking for so linking succeeds.
     11        At runtime, though, we realize we are opening the wrong dylib and bad things happen.
     12
     13        The solution is to look in the Catalyst WebCore framework directory when WK_USE_ALTERNATE_FRAMEWORKS_DIR is YES,
     14        which is only in the Catalyst build.
     15
     16        * Configurations/WebCore.xcconfig:
     17
    1182021-07-14  Mark Lam  <mark.lam@apple.com>
    219
  • trunk/Source/WebCore/Configurations/WebCore.xcconfig

    r279282 r279925  
    4242
    4343WK_FRAMEWORKS_LIBRARY_DIR = $(WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Frameworks
    44 WK_FRAMEWORKS_LIBRARY_DIR[sdk=macosx*] = $(WK_FRAMEWORKS_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR));
     44WK_FRAMEWORKS_LIBRARY_DIR[sdk=macosx*] = $(WK_FRAMEWORKS_LIBRARY_DIR_USE_ALTERNATE_FRAMEWORKS_DIR_$(WK_USE_ALTERNATE_FRAMEWORKS_DIR))
     45WK_FRAMEWORKS_LIBRARY_DIR_USE_ALTERNATE_FRAMEWORKS_DIR_NO = $(WK_FRAMEWORKS_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR));
    4546WK_FRAMEWORKS_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_NO = $(WEBCORE_FRAMEWORKS_DIR)/WebCore.framework/Versions/A/Frameworks;
    4647WK_FRAMEWORKS_LIBRARY_DIR_USE_OVERRIDE_FRAMEWORKS_DIR_YES = $(WK_OVERRIDE_FRAMEWORKS_DIR);
     48WK_FRAMEWORKS_LIBRARY_DIR_USE_ALTERNATE_FRAMEWORKS_DIR_YES = $(WK_ALTERNATE_FRAMEWORKS_DIR)/$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks/WebCore.framework/Versions/A/Frameworks;
    4749
    4850LIBRARY_SEARCH_PATHS = $(inherited) "$(WK_FRAMEWORKS_LIBRARY_DIR)";
Note: See TracChangeset for help on using the changeset viewer.