On Wed, Mar 27, 2019 at 07:45:20PM +0000, Matthias Klose wrote: > GCC 9 also passes the linker option --as-needed by default; typical > build issues are passing libraries before object files to the linker, > > [...] > /usr/bin/ld: menu.c:(.text+0x17bb): undefined reference to > `gtk_clist_set_column_width' > [...]
gman: $(objectfiles) $(CC) -lpthread $(GTK_LIBS) -rdynamic $(objectfiles) -o gman That sounds like libraries before object files passed to the linker... So, we just need to swap the order, to: $(CC) -rdynamic $(objectfiles) -lpthread $(GTK_LIBS) -o gman ? -- 2. That which causes joy or happiness.