14.01.2017, 17:16, "Fujii Hironori" <fujii.hiron...@gmail.com>: > On Sat, Jan 14, 2017 at 1:34 AM, Konstantin Tokarev <annu...@yandex.ru> wrote: >> Static library is just an (indexed) archive of object files, symbol >> dependencies are not resolved when it is created. Instead this happens when >> static library is linked into shared library or executable. >> >> If PAL is static and uses symbol from WebCore, link failure may happen >> only[*] if that symbol is not used anywhere in WebCore itself (provided that >> PAL stays after WebCore in linker command line and options like >> --start-group/--end-group are not used). >> >> [*] Assuming linker behavior similar to ELF linkers > > You can check unresolved symbols of the static library by creating a > unit test executable of PAL.
Actually, it enough just to avoid adding WebCore to include directories of PAL, and code with layering violation won't compile. > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > https://lists.webkit.org/mailman/listinfo/webkit-dev -- Regards, Konstantin _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev