mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Fix Cygwin compatibility
This commit is contained in:
parent
c25c8b330d
commit
f3c553b2a9
@ -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
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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*)
|
||||
|
Loading…
Reference in New Issue
Block a user