Bug#949621: webkit2gtk: Please pass "--reduce-memory-overheads" on non-Gold targets
Alberto Garcia
berto at igalia.com
Wed Jan 22 22:29:03 GMT 2020
On Wed, Jan 22, 2020 at 10:00:07PM +0100, John Paul Adrian Glaubitz wrote:
> ifneq (,$(filter $(DEB_HOST_ARCH),hppa m68k powerpc sh4))
> LDFLAGS += -Wl,--reduce-memory-overheads
> endif
Rather than listing the architectures, perhaps it's easier to have
cmake take care of that automatically (I haven't tried this yet):
if (NOT USE_LD_GOLD)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--reduce-memory-overheads")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--reduce-memory-overheads")
endif ()
Do you have an idea of how much slower this is in practice? The manual
says the algorithm goes from O(n) to O(n^2), which is no joke.
Berto
More information about the Pkg-webkit-maintainers
mailing list