Created attachment 443094 [details] build.log libtool: link: x86_64-pc-linux-gnu-g++ -pipe -O2 -march=bdver3 -std=c++11 -Wl,-O1 -Wl,--hash-style=gnu -o .libs/tesseract tesseract-tesseractmain.o -l-lOpenCL -Wl,--as-needed ./.libs/libtesseract.so -lrt -llept -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -l-lOpenCL collect2: error: ld returned 1 exit status make[2]: *** [Makefile:591: tesseract] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-text/tesseract-3.04.01/work/tesseract-3.04.01/api'
Created attachment 443096 [details, diff] tesseract-3.04.01-fix-opencl-ldflags.patch
Looks great, thanks. I merged the patch.