winbuild: Make USE_WINSSL depend on USE_SSPI
Since WinSSL cannot be build without SSPI being enabled, USE_WINSSL now defaults to the value of USE_SSPI. The makefile does now raise an error if WinSSL is enabled while SSPI is disabled.
This commit is contained in:
Родитель
86871577d9
Коммит
d39bbcfa8d
|
@ -77,7 +77,7 @@ USE_IDN = false
|
|||
!ENDIF
|
||||
|
||||
!IFNDEF ENABLE_WINSSL
|
||||
USE_WINSSL = true
|
||||
USE_WINSSL = $(USE_SSPI)
|
||||
!ELSEIF "$(ENABLE_WINSSL)"=="yes"
|
||||
USE_WINSSL = true
|
||||
!ELSEIF "$(ENABLE_WINSSL)"=="no"
|
||||
|
|
|
@ -143,22 +143,6 @@ SSH2_CFLAGS = $(SSH2_CFLAGS) /I$(WITH_DEVEL)/include/libssh2
|
|||
!ENDIF
|
||||
|
||||
|
||||
!IFNDEF USE_WINSSL
|
||||
!IF "$(USE_SSL)"=="true"
|
||||
USE_WINSSL = false
|
||||
!ELSE
|
||||
USE_WINSSL = true
|
||||
!ENDIF
|
||||
!ELSEIF "$(USE_WINSSL)"=="yes"
|
||||
USE_WINSSL = true
|
||||
!ENDIF
|
||||
|
||||
!IF "$(USE_WINSSL)"=="true"
|
||||
SSPI_CFLAGS = $(SSPI_CFLAGS) /DUSE_SCHANNEL
|
||||
USE_SSPI = true
|
||||
!ENDIF
|
||||
|
||||
|
||||
!IFNDEF USE_SSPI
|
||||
USE_SSPI = true
|
||||
!ELSEIF "$(USE_SSPI)"=="yes"
|
||||
|
@ -193,6 +177,24 @@ LFLAGS = $(LFLAGS) Normaliz.lib
|
|||
!ENDIF
|
||||
|
||||
|
||||
!IFNDEF USE_WINSSL
|
||||
!IF "$(USE_SSL)"=="true"
|
||||
USE_WINSSL = false
|
||||
!ELSE
|
||||
USE_WINSSL = $(USE_SSPI)
|
||||
!ENDIF
|
||||
!ELSEIF "$(USE_WINSSL)"=="yes"
|
||||
USE_WINSSL = true
|
||||
!ENDIF
|
||||
|
||||
!IF "$(USE_WINSSL)"=="true"
|
||||
!IF "$(USE_SSPI)"!="true"
|
||||
!ERROR cannot build with WinSSL without SSPI
|
||||
!ENDIF
|
||||
SSPI_CFLAGS = $(SSPI_CFLAGS) /DUSE_SCHANNEL
|
||||
!ENDIF
|
||||
|
||||
|
||||
|
||||
!IF "$(GEN_PDB)"=="yes"
|
||||
GEN_PDB = true
|
||||
|
|
Загрузка…
Ссылка в новой задаче