summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-10-14 09:41:35 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-10-14 09:41:35 +0000
commitb33ba47ba39470ea36c27b9378e8c82ac9be428f (patch)
tree39694afc713b8b4679e3ab4386c371a2589ea50f /GNUmakefile
parentfa93f918f70333c61ef4a83023c7bdbdc7403554 (diff)
downloadcryptopp-b33ba47ba39470ea36c27b9378e8c82ac9be428f.tar.gz
add -lws2_32 on MinGW
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@136 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c017de4..6534afb 100644
--- a/GNUmakefile
+++ b/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