Skip to content

Commit

Permalink
fixes #426; define NOUNDEFINED for cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
matzeri authored and zdenop committed Oct 20, 2018
1 parent bafe8f6 commit ebbd4e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/api/Makefile.am
Expand Up @@ -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
Expand Down

0 comments on commit ebbd4e3

Please sign in to comment.