Fix Cygwin compatibility

This commit is contained in:
Marco Atzeri 2016-06-17 15:52:01 +03:00 committed by Zdenko Podobný
parent c25c8b330d
commit f3c553b2a9
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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*)