How to compile 3.02 with -fPIC

derda2 wrote on Tuesday, September 24, 2013:

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

elmindreda wrote on Tuesday, September 24, 2013:

Add -fPIC to CMAKE_C_FLAGS.