I'm building GLEW on Solaris 11.2 using Solaris Studio 12.3. I found that until
-Kpic was added to the CFLAGS.EXTRA, errors such as this littered my screen:
ld: warning: relocation error: R_AMD64_PC32: file lib/libGLEW.so: symbol GLXEW_SGI_swap_control: displacement relocation applied to the symbol <unknown> at 0x88739: symbol GLXEW_SGI_swap_control is a copy relocated symbol
ld: warning: relocation error: R_AMD64_PC32: file lib/libGLEW.so: symbol glewXSwapIntervalSGI: displacement relocation applied to the symbol <unknown> at 0x814d3: symbol glewXSwapIntervalSGI is a copy relocated symbol
A similar change is needed for Makefile.solaris-gcc: -fPIC
Thanks for the report.
Fixed in git. Thanks for the report.