title: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
body: <p>So I ve been trying to recompile with -fPIC but it seems I am getting the same error, am I doing it right or am I missing something else?</p>
  
  <pre><code>all: pr1 pr2
  
  pr1:
      g++ -std=c++11 -fPIC -c $(wildcard pr1.cpp)
      g++ -std=c++11 -o $(PROGRAM) pr1.o $(LIBRARY) $(LINKER_FLAGS)
      rm -f pr1.o
  pr2:
      g++ -std=c++11 -fPIC -c $(wildcard pr2.cpp) 
      g++ -std=c++11 -o $(PROGRAM1) pr2.o $(LIBRARY) $(LINKER_FLAGS) 
      rm -f pr2.o
  </code></pre>
  
  <p>The problem seems to occur at the second program (pr2), possibly when I am trying to reuse LIBRARY(.a file)?</p>