Re: Avoiding compiler warnings/errors with function pointers

2007-06-11 Thread Reuben Thomas
On Tue, 5 Jun 2007, Peter O'Gorman wrote: freeBSD has a dlfunc() function that behaves like dlsym but returns a function pointer, last time I looked it was implemented using a union... wait, let me look again...:

Re: Too many libraries --as-needed ?

2007-06-11 Thread Noah Misch
On Mon, Jun 11, 2007 at 08:27:26AM -0500, Paul Elliott wrote: The sponsor of peless to debian complains that peless links to too many libraries that it does not strictly speaking need: g++ -g -O2 -o peless -L/usr/lib peless-peless.o peless-gmore.o +peless-search.o -pthread

Re: Avoiding compiler warnings/errors with function pointers

2007-06-11 Thread Peter O'Gorman
On Jun 11, 2007, at 12:34 PM, Reuben Thomas wrote: On Tue, 5 Jun 2007, Peter O'Gorman wrote: freeBSD has a dlfunc() function that behaves like dlsym but returns a function pointer, last time I looked it was implemented using a union... wait, let me look again...: