diff --git a/api/Makefile.am b/api/Makefile.am index cb9990df..9d20919b 100644 --- a/api/Makefile.am +++ b/api/Makefile.am @@ -67,7 +67,7 @@ libtesseract_la_LIBADD += ../cube/libtesseract_cube.la \ ../neural_networks/runtime/libtesseract_neural.la endif -libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION) +libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION) -no-undefined bin_PROGRAMS = tesseract tesseract_SOURCES = tesseractmain.cpp diff --git a/ccutil/ambigs.cpp b/ccutil/ambigs.cpp index 7620e958..15a755de 100644 --- a/ccutil/ambigs.cpp +++ b/ccutil/ambigs.cpp @@ -24,13 +24,13 @@ #include "helpers.h" #include "universalambigs.h" -#if defined _WIN32 || defined(__CYGWIN__) +#if defined _WIN32 #ifndef __GNUC__ #define strtok_r strtok_s #else #include "strtok_r.h" #endif /* __GNUC__ */ -#endif /* _WIN32 __CYGWIN__*/ +#endif /* _WIN32 */ namespace tesseract { diff --git a/configure.ac b/configure.ac index 40790e89..68586b1c 100644 --- a/configure.ac +++ b/configure.ac @@ -94,7 +94,6 @@ case "${host_os}" in ;; cygwin*) AM_CONDITIONAL([ADD_RT], false) - AM_CONDITIONAL([T_WIN], true) AC_SUBST([AM_LDFLAGS], ['-Wl,-no-undefined -Wl,--as-needed']) ;; solaris*)