how to compile 3.02 with -fPIC

Using GLFW
derda2
2013-09-24
2013-09-24
  • derda2

    derda2 - 2013-09-24

    Hi

    I get:
    /usr/bin/ld: /usr/local/lib//libglfw3.a(context.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib//libglfw3.a: could not read symbols: Bad value

    Hmm how to compile 3.02 with -fPIC on Ubuntu?
    Thanks

     
  • Camilla Löwy

    Camilla Löwy - 2013-09-24

    Add -fPIC to CMAKE_C_FLAGS.