Use Cygwin instead of CYGWIN for POCO_HOST_OSNAME.

Setup OSARCH_64BITS to 1 for Cygwin x86_64 platform.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2015-08-21 14:18:37 +02:00
parent 0926c9b752
commit 883800f56c

View File

@ -68,7 +68,10 @@ endif
#
POCO_HOST_OSNAME = $(shell uname)
ifeq ($(findstring CYGWIN,$(POCO_HOST_OSNAME)),CYGWIN)
POCO_HOST_OSNAME = CYGWIN
ifeq ($(findstring x86_64,$(POCO_HOST_OSNAME)),x86_64)
OSARCH_64BITS = 1
endif
POCO_HOST_OSNAME = Cygwin
endif
ifeq ($(findstring MINGW,$(POCO_HOST_OSNAME)),MINGW)
@ -161,6 +164,9 @@ LIB64SUFFIX = $(if $(filter $(OSARCH),x86_64 sparc64 ppc64),64,)
else ifneq ($(DEBIANISH),)
LIB64SUFFIX = $(if $(filter $(OSARCH),x86_64 sparc64 ppc64),/x86_64-linux-gnu,)
endif
ifeq ($(findstring Cygwin,$(POCO_HOST_OSNAME)),Cygwin)
LIB64SUFFIX = $(if $(filter $(OSARCH),x86_64),64,)
endif
# Default static lib extension
STATICLIBLINKEXT = .a