tesseract: fix HEAD build (#4769)
upstream added -no-undefined to LDFLAGS, which broke the build on macOS
This commit is contained in:
parent
89d910f5a5
commit
239ebb2724
1 changed files with 8 additions and 0 deletions
|
@ -72,6 +72,14 @@ class Tesseract < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
if build.head?
|
||||||
|
# ld: symbol(s) not found for _clSetKernelArg and other symbols
|
||||||
|
# Regression caused by https://github.com/tesseract-ocr/tesseract/commit/b1c921b
|
||||||
|
# Reported 13 Sep 2016 https://github.com/tesseract-ocr/tesseract/issues/426
|
||||||
|
inreplace "api/Makefile.am", "$(GENERIC_LIBRARY_VERSION) -no-undefined",
|
||||||
|
"$(GENERIC_LIBRARY_VERSION)"
|
||||||
|
end
|
||||||
|
|
||||||
if build.with? "training-tools"
|
if build.with? "training-tools"
|
||||||
icu4c = Formula["icu4c"]
|
icu4c = Formula["icu4c"]
|
||||||
ENV.append "CFLAGS", "-I#{icu4c.opt_include}"
|
ENV.append "CFLAGS", "-I#{icu4c.opt_include}"
|
||||||
|
|
Loading…
Reference in a new issue