Hit a snag with LM19 building an application
when compiling I get multiple errors when using a lib, with a gcc suggestion to recompile with -fPIC set
lots like this:-
Code: Select all
/usr/bin/x86_64-linux-gnu-ld: src/Hv_Lib_fftw/lin_x86_64/libfftw3v337_gcc482_thread_posix.a(r2cb_13.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
Code: Select all
ar -t libfftw3v337_gcc482_thread_posix.a
Could someone help with what I need to do the recompile this lib with the -fPIC flag set to satisfy the build.
This package compiles easily in LM18.3
As LM19 uses gcc7 , I have tried building with gcc4.8, but I get the same errors
Thanks