From 41c3e93cb7a6c992857da97e635be74fb4fb3efd Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 2 Nov 2019 18:58:19 +0100 Subject: [PATCH] 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 --- tesseract.pc.cmake | 2 +- tesseract.pc.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tesseract.pc.cmake b/tesseract.pc.cmake index cb82e50e9c..5e5bf53e15 100644 --- a/tesseract.pc.cmake +++ b/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} diff --git a/tesseract.pc.in b/tesseract.pc.in index 5ea54cfe54..f907f07cc7 100644 --- a/tesseract.pc.in +++ b/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}