The gcc command and options called by "fltk2-config --compile" is:
Code:
gcc -I/usr/local/include -I/usr/include/freetype2 -Wno-non-virtual-dtor -o my_code my_code.cxx
-L/usr/local/lib /usr/local/lib/libfltk2.a -lX11 -lXi -lXinerama -lXcursor -lXft -lpthread -lm -lXext -lsupc++
I tried to put the options to ./configure LIBS= LDFLAGS=, but still no success. I have to try more combinations.