On Sat, 2016-01-16 at 16:06 +0200, Adrián Pérez de Castro wrote: > That may not work: the linker will only pick from static libraries > the *.o > objects it needs. That is: only *.o files from which symbols are used > will > be copied to the output libjavascriptcoregtk.so — if libwebkit2gtk.so > uses > symbols from WTF which pull additional *.o files from the WTF static > library, > then the dynamic linker won't be able to load it at run-time.
This is what the ADD_WHOLE_ARCHIVE_TO_LIBRARIES macro solves. We use -Wl,--whole-archive on Linux. Jeremy is using -Wl,-all_load on OS X, see bug #153117. But the semantics are different, and we do not use ADD_WHOLE_ARCHIVE_TO_LIBRARIES for WebCore anyway. Linkers are hard. :( Michael _______________________________________________ webkit-gtk mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-gtk
