nesl247 wrote:johnnyboyro wrote:-Wl,--as-needed in LDFLAGS breaks imlib
You are using the ebuild in the overlay correct? When emerging, does it say patching with an as-needed patch?
Yes, I am using the correct ebuild from the overlay.
The problem is at configure, when testing to see if it can build a gmodularized imlib. This test fails with some unresolved symbold from /usr/lib/gmodule.so which is part of glib-1.2.10-r5.
Because of this, the gdk_imlib does not link against glib stuff (gdk/gtk for example) + all those imlib_gif, imlib_jpeg, etc.
Then, when compiling ./utils, it fails at some point because it needs for linking a gdk_imlib that have symbols from imlib_gif, tiff, jpeg, etc ...
Now, why it fails that test?... I do not know yet

... Maybe because the gmodule.so does not explicitelly use some symbols from gdk/gtk, thus not having a explicit dependency to those libs ...
Or maybe from other reasons ... I don't really have more time to look forward on this problem, not at this moment at least

, so ... I just disabled that flag from LDFLAGS and I'm happy for the moment.
And yes, it is applying correctly the as-needed patch ...