The attached patch, tested on 4.0.0 RC3 for Cygwin,
should solve the

https://github.com/tesseract-ocr/tesseract/issues/426

and maintain the current cygwin build.

It is similar to implementation in other software of the same
need to have "-no-undefined" passed to libtool

I doubt that the configure.ac

   AC_SUBST([AM_LDFLAGS], ['-Wl,-no-undefined -Wl,--as-needed'])

is really effective for the T_WIN build as I see that there is
in src/api/Makefile.am again a

  libtesseract_la_LDFLAGS += -no-undefined -Wl,--as-needed -lws2_32



Regards
Marco


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

--
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/d0a09284-1ece-5575-64b1-ce1b7c306abf%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
--- origsrc/tesseract-4.0.0-rc3/configure.ac    2018-10-14 19:39:10.000000000 
+0200
+++ src/tesseract-4.0.0-rc3/configure.ac        2018-10-20 07:25:11.178185300 
+0200
@@ -88,7 +88,7 @@ case "${host_os}" in
         ;;
     cygwin*)
         AM_CONDITIONAL([ADD_RT], false)
-        AC_SUBST([AM_LDFLAGS], ['-Wl,-no-undefined -Wl,--as-needed'])
+        AC_SUBST([NOUNDEFINED], ['-no-undefined'])
         ;;
     solaris*)
         LIBS="-lsocket -lnsl -lrt -lxnet"
--- origsrc/tesseract-4.0.0-rc3/src/api/Makefile.am     2018-10-14 
19:39:10.000000000 +0200
+++ src/tesseract-4.0.0-rc3/src/api/Makefile.am 2018-10-20 07:25:11.181190200 
+0200
@@ -58,7 +58,7 @@ libtesseract_la_LIBADD = \
     ../ccutil/libtesseract_ccutil.la \
     ../opencl/libtesseract_opencl.la
 
-libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION) 
-no-undefined
+libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION) 
$(NOUNDEFINED)
 
 bin_PROGRAMS = tesseract
 tesseract_SOURCES = tesseractmain.cpp

Reply via email to