Menu

#253 CFLAGS for Solaris need PIC specified

1.12.0
closed
None
4
2015-02-06
2014-09-09
No

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

Discussion

  • Nigel Stewart

    Nigel Stewart - 2014-09-18
    • status: open --> accepted
    • assigned_to: Nigel Stewart
     
  • Nigel Stewart

    Nigel Stewart - 2014-09-18

    Thanks for the report.

     
  • Nigel Stewart

    Nigel Stewart - 2015-01-24
    • status: accepted --> pending
     
  • Nigel Stewart

    Nigel Stewart - 2015-01-24

    Fixed in git. Thanks for the report.

     
  • Nigel Stewart

    Nigel Stewart - 2015-02-06
    • Status: pending --> closed