diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-10-14 09:41:35 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-10-14 09:41:35 +0000 |
commit | 852394c4e04e7287e661c19c62544922acb6a4ee (patch) | |
tree | 39694afc713b8b4679e3ab4386c371a2589ea50f | |
parent | de2ce437755cf6bf4712bcd4d1fd5268d115b44e (diff) | |
download | cryptopp-git-852394c4e04e7287e661c19c62544922acb6a4ee.tar.gz |
add -lws2_32 on MinGW
-rw-r--r-- | GNUmakefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index c017de4f..6534afb9 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 |