How could I get the PIC library ?
Closed this issue · 1 comments
EeyoreLee commented
I tried add flag "-fPIC" in CMakefiles.txt but not works.
set_target_properties(tokenizers_c PROPERTIES COMPILE_FLAGS "-fPIC")
set_target_properties(sentencepiece-static PROPERTIES COMPILE_FLAGS "-fPIC")
set_target_properties(${TOKENIZERS_CPP_LINK_LIBS} PROPERTIES COMPILE_FLAGS "-fPIC")
set_target_properties(tokenizers_cpp PROPERTIES COMPILE_FLAGS "-fPIC")
EeyoreLee commented
I add the compile flag for all then it works.