Hey, I'm trying to build all Xfce core with --Wl,--as-needed in LDFLAGS. Some components already define it (thunar, libxfc4menu, xfce4-settings, exo and terminal, mainly), so I'm trying with the others. It seems that panel fails to build when using it: libtool: link: x86_64-linux-gnu-gcc -shared .libs/libxfce4panel_la-libxfce4panel-enum-types.o .libs/libxfce4panel_la-libxfce4panel-aliasdef.o .libs/libxfce4panel_la-libxfce4panel-marshal.o .libs/libxfce4panel_la-xfce-panel-window.o .libs/libxfce4panel_la-xfce-arrow-button.o .libs/libxfce4panel_la-xfce-itembar.o .libs/libxfce4panel_la-xfce-hvbox.o .libs/libxfce4panel_la-xfce-panel-convenience.o .libs/libxfce4panel_la-xfce-panel-external-item.o .libs/libxfce4panel_la-xfce-panel-external-plugin.o .libs/libxfce4panel_la-xfce-panel-internal-plugin.o .libs/libxfce4panel_la-xfce-panel-item-iface.o .libs/libxfce4panel_la-xfce-panel-plugin-iface.o .libs/libxfce4panel_la-xfce-panel-macros.o .libs/libxfce4panel_la-xfce-panel-plugin-messages.o /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -lxfce4util /usr/lib/libglib-2.0.so -Wl,-z -Wl,defs -Wl,--as-needed -Wl,-soname -Wl,libxfce4panel.so.1 -Wl,-version-script -Wl,.libs/libxfce4panel.ver -o .libs/libxfce4panel.so.1.1.2 .libs/libxfce4panel_la-xfce-panel-item-iface.o: In function `IA__xfce_panel_item_focus_panel': /tmp/buildd/xfce4-panel-4.6.0/libxfce4panel/xfce-panel-item-iface.c:221: undefined reference to `XSendEvent' /tmp/buildd/xfce4-panel-4.6.0/libxfce4panel/xfce-panel-item-iface.c:209: undefined reference to `XInternAtom' collect2: ld returned 1 exit status make[4]: *** [libxfce4panel.la] Error 1 If you need more info, please ask :) Cheers, -- Yves-Alexis
And -lX11 .libs/libxfce4panel_la-xfce-panel-item-iface.o seems to work.
Should be fix0red in revision 29668.