diff --git a/trunk/c5/GNUmakefile b/trunk/c5/GNUmakefile index c017de4f..6534afb9 100644 --- a/trunk/c5/GNUmakefile +++ b/trunk/c5/GNUmakefile @@ -11,11 +11,16 @@ RANLIB = ranlib UNAME = $(shell uname) ISX86 = $(shell uname -m | grep -c "i.86\|x86_64") GCC33ORLATER = $(shell gcc -v 2>&1 | grep -c "gcc version \(3.[3-9]\|[4-9]\)") +ISMINGW = $(shell uname | grep -c "MINGW32") -ifeq ($(ISX86) $(GCC33ORLATER),1 1) +ifeq ($(ISX86) $(GCC33ORLATER) $(ISMINGW),1 1 0) # MINGW32 is missing the memalign function CXXFLAGS += -msse2 endif +ifeq ($(ISMINGW),1) +LDLIBS += -lws2_32 +endif + ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist CXXFLAGS += -mbnu210 else