Browse Source

Add missing libraries in configuration for pkg-config

This fixes linker errors in third-party software like tesserocr for builds
which use any of these libraries.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Stefan Weil 1 year ago
parent
commit
41c3e93cb7
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      tesseract.pc.cmake
  2. 1
    1
      tesseract.pc.in

+ 1
- 1
tesseract.pc.cmake

@@ -7,6 +7,6 @@ Name: @tesseract_NAME@
 Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.
 URL: https://github.com/tesseract-ocr/tesseract
 Version: @tesseract_VERSION@
-Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@
+Libs: -L${libdir} -l@tesseract_OUTPUT_NAME@ @libarchive_LIBS@ @libcurl_LIBS@ @TENSORFLOW_LIBS@
 Libs.private:
 Cflags: -I${includedir}

+ 1
- 1
tesseract.pc.in

@@ -11,6 +11,6 @@ Description: An OCR Engine that was developed at HP Labs between 1985 and 1995..
 URL: https://github.com/tesseract-ocr/tesseract
 Version: @VERSION@
 Requires.private: lept
-Libs: -L${libdir} -ltesseract
+Libs: -L${libdir} -ltesseract @libarchive_LIBS@ @libcurl_LIBS@ @TENSORFLOW_LIBS@
 Libs.private: -lpthread @OPENCL_LDFLAGS@
 Cflags: -I${includedir}