Palemoon has a build time dependency on gtk2, even with USE="gtk3"
It uses the gtk2 headers at some point in the build process and links some stuff against gtk2 libs.
I assume this is known to the maintainer, as USE="gtk2" is forced. However this is a bad workaround, as USE="gtk2" forces USE="-gtk3".
All gtk2 is used for is to build a library in /usr/lib64/palemoon/gtk2.
Palemoon doesn't need that library, as removing the gtk2 libs, that library, or both doesn't prevent palemoon from working.
I even added that path to my INSTALL_MASK and everything works.
If that library was used at all, starting palemoon would fail with a loading shared object error.
This tells me that the build-time dependency on gtk2 is probably a bug.
As a better workaround, I created this:
https://github.com/stefan11111/fake-gtk2
I don't thing I can optimize it more, as the source files are empty files, so any further optimization in that can only be achieved through compile flags.



