sentencepiece/sentencepiece.pc.in
Ryan Schmidt 41835971b7 Fix pkg-config file to avoid overlinking
When configured to use external protobuf, remove -lprotobuf-lite from
pkg-config file's Libs section. The sentencepiece libraries link with
libprotobuf-lite; it is not necessary for users of the sentencepiece
libraries to link with protobuf unless they are using static linking so
this should have been in Libs.private. Use Requires.private so that we
use protobuf's pkg-config file to get the flags.
2023-05-21 13:38:08 -05:00

12 lines
371 B
PkgConfig

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir_for_pc_file@
includedir=@includedir_for_pc_file@
Name: @PROJECT_NAME@
Description: Unsupervised text tokenizer and detokenizer for Neural Network-based text generation.
Version: @PROJECT_VERSION@
Libs: -L${libdir} -lsentencepiece -lsentencepiece_train
Cflags: -I${includedir}
Requires.private: @libprotobuf_lite@