Bug 225501

Summary: [WinCairo] Remove linker warning on ANGLE
Product: WebKit Reporter: Basuke Suzuki <Basuke.Suzuki>
Component: PlatformAssignee: Basuke Suzuki <Basuke.Suzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: Basuke.Suzuki, darin, dino, don.olmstead, ews-watchlist, graouts, kondapallykalyan, stephan.szabo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
PATCH none

Description Basuke Suzuki 2021-05-06 18:32:07 PDT
There're two warnings displayed when creating library lib64\libGLESv2.lib and object lib64\libGLESv2.exp:

LINK : warning LNK4217: symbol 'ANGLEGetDisplayPlatform' defined in 'ANGLE.lib(Platform.obj)' is imported by 'proc_table_egl_autogen.obj' in function '"void __cdecl egl::`dynamic initializer for 'g_procTable''(void)" (??__Eg_procTable@egl@@YAXXZ)' [W:\WebKit\WebKitBuild\Release\Source\ThirdParty\ANGLE\GLESv2.vcxproj]
LINK : warning LNK4217: symbol 'ANGLEResetDisplayPlatform' defined in 'ANGLE.lib(Platform.obj)' is imported by 'proc_table_egl_autogen.obj' in function '"void __cdecl egl::`dynamic initializer for 'g_procTable''(void)" (??__Eg_procTable@egl@@YAXXZ)' [W:\WebKit\WebKitBuild\Release\Source\ThirdParty\ANGLE\GLESv2.vcxproj]
Comment 1 Basuke Suzuki 2021-05-07 14:53:05 PDT
I'm still beginner of Windows build env, but my understanding of this warning is:
- ANGLE is compiled as static library
- That is linked to libGLESv2.dll
- __declspec(dllimport) is not required in this case

Is my understanding correct?
Comment 2 Basuke Suzuki 2021-05-07 15:15:24 PDT
Created attachment 428039 [details]
PATCH
Comment 3 EWS Watchlist 2021-05-07 15:16:21 PDT
Note that there are important steps to take when updating ANGLE. See https://trac.webkit.org/wiki/UpdatingANGLE
Comment 4 Darin Adler 2021-05-08 21:07:30 PDT
Comment on attachment 428039 [details]
PATCH

View in context: https://bugs.webkit.org/attachment.cgi?id=428039&action=review

> Source/ThirdParty/ANGLE/ChangeLog:8
> +        libANGLE is statically linked to libGLESv2.dll so that __declspec(dllimport) is not required here.

is *now* statically linked; we changed that recently
Comment 5 EWS 2021-05-08 21:31:50 PDT
Committed r277241 (237510@main): <https://commits.webkit.org/237510@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 428039 [details].
Comment 6 Radar WebKit Bug Importer 2021-05-08 21:32:14 PDT
<rdar://problem/77704188>
Comment 7 Basuke Suzuki 2021-05-09 22:14:11 PDT
> is *now* statically linked; we changed that recently


Make sense. Thanks!