[webkit-dev] WebCore/platform standalone library
Myles C. Maxfield
mmaxfield at apple.com
Sat Jan 14 18:51:01 PST 2017
The ar utility isn’t a linker - it just collects object files. I don’t believe it has any concept of matching symbols up to exported symbols in external shared libraries (like JavaScriptCore for WTF).
(But of course someone can correct me if I’m wrong.)
—Myles
> On Jan 14, 2017, at 1:38 PM, Darin Adler <darin at apple.com> wrote:
>
>> On Jan 14, 2017, at 12:39 PM, Myles C. Maxfield <mmaxfield at apple.com> wrote:
>>
>> However, a shared library would enforce layering naturally, whereas a static library would need either an application to link to it and not to WebCore, such as a unit test suite, or some out-of-band layering enforcement, like a Python script.
>
> I’m surprised to learn this. There is no way to build a static library that gives us linker errors if there are unresolved references?
>
> — Darin
More information about the webkit-dev
mailing list