diff --git a/configure/os/CONFIG.Common.win32-x86-cygwin b/configure/os/CONFIG.Common.win32-x86-cygwin index 94271bc86..2847a2969 100644 --- a/configure/os/CONFIG.Common.win32-x86-cygwin +++ b/configure/os/CONFIG.Common.win32-x86-cygwin @@ -25,12 +25,14 @@ RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-Wl,-rpath,%) # Library used when COMMANDLINE_LIBRARY is READLINE LDLIBS_READLINE = -lreadline +#======== THESE 4 LINES MAY NOT BE NECESSARY =============== OP_SYS_CPPFLAGS = -D_WIN32=1 -D__WIN32=1 -D__MINGW32__=1 -DWIN32=1 -D__WIN32__=1 -DWINNT=1 OP_SYS_CPPFLAGS += -U__unix__ -Uunix -U__CYGWIN__ -U__unix -U__CYGWIN32__ OP_SYS_CPPFLAGS += -D__MSVCRT__ - OP_SYS_CXXFLAGS += -D__cplusplus -OP_SYS_LDLIBS = +OP_SYS_CPPFLAGS += -mno-cygwin +OP_SYS_LDFLAGS += -mno-cygwin +OP_SYS_LDLIBS = -lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm