It fails with:
configure:9478: checking for glutSwapBuffers in -lglut
configure:9509: cc -o conftest -O2 -pipe -I/usr/pkg/include
-I/usr/include -Wall -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c
-lglut -lSM -lICE -lXmu -lXi -lXext -lXmu -lGLU -lGL -lX11 -lXext -lm
>&5
/var/obj/pkg/graphics/gle/work/.buildlink/lib/libglut.so: undefined
reference to `glXGetProcAddressARB'
configure:9512: $? = 1
Interestingly glut appears to be linked with libGL which contains
glXGetProcAddressARB. Anyone seeing similar?
ldd /var/obj/pkg/graphics/gle/work/.buildlink/lib/libglut.so
/var/obj/pkg/graphics/gle/work/.buildlink/lib/libglut.so:
-lXau.6 => /usr/pkg/lib/libXau.so.6
-lXdmcp.6 => /usr/pkg/lib/libXdmcp.so.6
-lX11.6 => /usr/pkg/lib/libX11.so.6
-lXext.6 => /usr/pkg/lib/libXext.so.6
-lm.0 => /usr/lib/libm387.so.0
-lm.0 => /usr/lib/libm.so.0
-lGL.1 => /usr/pkg/lib/libGL.so.1
-lstdc++.6 => /usr/lib/libstdc++.so.6
-lgcc_s.1 => /usr/lib/libgcc_s.so.1
-lGLU.1 => /usr/pkg/lib/libGLU.so.1
-lICE.6 => /usr/pkg/lib/libICE.so.6
-lSM.6 => /usr/pkg/lib/libSM.so.6
-lXt.6 => /usr/pkg/lib/libXt.so.6
-lXmu.6 => /usr/pkg/lib/libXmu.so.6
-lXi.6 => /usr/pkg/lib/libXi.so.6