Skip to content

Commit b1c921b

Browse files
matzeriamitdo
authored andcommitted
Fix Cygwin compatibility
1 parent 034d666 commit b1c921b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

api/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ libtesseract_la_LIBADD += ../cube/libtesseract_cube.la \
6767
../neural_networks/runtime/libtesseract_neural.la
6868
endif
6969

70-
libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION)
70+
libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION) -no-undefined
7171

7272
bin_PROGRAMS = tesseract
7373
tesseract_SOURCES = tesseractmain.cpp

ccutil/ambigs.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
#include "helpers.h"
2525
#include "universalambigs.h"
2626

27-
#if defined _WIN32 || defined(__CYGWIN__)
27+
#if defined _WIN32
2828
#ifndef __GNUC__
2929
#define strtok_r strtok_s
3030
#else
3131
#include "strtok_r.h"
3232
#endif /* __GNUC__ */
33-
#endif /* _WIN32 __CYGWIN__*/
33+
#endif /* _WIN32 */
3434

3535
namespace tesseract {
3636

configure.ac

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ case "${host_os}" in
9494
;;
9595
cygwin*)
9696
AM_CONDITIONAL([ADD_RT], false)
97-
AM_CONDITIONAL([T_WIN], true)
9897
AC_SUBST([AM_LDFLAGS], ['-Wl,-no-undefined -Wl,--as-needed'])
9998
;;
10099
solaris*)

0 commit comments

Comments
 (0)