mlc-ai/tokenizers-cpp

How could I get the PIC library ?

Closed this issue · 1 comments

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")

I add the compile flag for all then it works.