mcatanzaro at igalia.com
Sat Jan 16 06:47:03 PST 2016
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
> symbols from WTF which pull additional *.o files from the WTF static
> 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. :(
More information about the webkit-gtk