diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-10-14 09:41:35 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-10-14 09:41:35 +0000 |
commit | b33ba47ba39470ea36c27b9378e8c82ac9be428f (patch) | |
tree | 39694afc713b8b4679e3ab4386c371a2589ea50f /GNUmakefile | |
parent | fa93f918f70333c61ef4a83023c7bdbdc7403554 (diff) | |
download | cryptopp-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-- | GNUmakefile | 7 |
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 |