diff --git a/configure.ac b/configure.ac index 4637efc9..d8fc4f2a 100644 --- a/configure.ac +++ b/configure.ac @@ -92,7 +92,7 @@ case "${host_os}" in mingw*) AM_CONDITIONAL([T_WIN], true) AM_CONDITIONAL([ADD_RT], false) - AC_SUBST([AM_LDFLAGS], ['-Wl,-no-undefined -Wl,--as-needed']) + AC_SUBST([AM_LDFLAGS], ['-no-undefined']) ;; cygwin*) AM_CONDITIONAL([ADD_RT], false) diff --git a/src/api/Makefile.am b/src/api/Makefile.am index 22747623..f0fe46db 100644 --- a/src/api/Makefile.am +++ b/src/api/Makefile.am @@ -103,7 +103,7 @@ tesseract_LDADD += $(libcurl_LIBS) if T_WIN tesseract_LDADD += -ltiff tesseract_LDADD += -lws2_32 -libtesseract_la_LDFLAGS += -no-undefined -Wl,--as-needed -lws2_32 +libtesseract_la_LDFLAGS += -no-undefined -lws2_32 endif if ADD_RT tesseract_LDADD += -lrt