mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Find openssl lib files in right directory for MSVC
Some openssl builds put their lib files in a VC subdirectory, others do not. Cater for both cases. Backpatch to all live branches. From an offline discussion with Leonardo Cecchi.
This commit is contained in:
		| @@ -523,10 +523,20 @@ sub AddProject | ||||
| 	if ($self->{options}->{openssl}) | ||||
| 	{ | ||||
| 		$proj->AddIncludeDir($self->{options}->{openssl} . '\include'); | ||||
| 		$proj->AddLibrary( | ||||
| 			$self->{options}->{openssl} . '\lib\VC\ssleay32.lib', 1); | ||||
| 		$proj->AddLibrary( | ||||
| 			$self->{options}->{openssl} . '\lib\VC\libeay32.lib', 1); | ||||
| 		if (-e "$self->{options}->{openssl}/lib/VC/ssleayMD.lib") | ||||
| 		{ | ||||
| 			$proj->AddLibrary( | ||||
| 				$self->{options}->{openssl} . '\lib\VC\ssleay32.lib', 1); | ||||
| 			$proj->AddLibrary( | ||||
| 				$self->{options}->{openssl} . '\lib\VC\libeay32.lib', 1); | ||||
| 		} | ||||
| 		else | ||||
| 		{ | ||||
| 			$proj->AddLibrary( | ||||
| 				$self->{options}->{openssl} . '\lib\ssleay32.lib', 1); | ||||
| 			$proj->AddLibrary( | ||||
| 				$self->{options}->{openssl} . '\lib\libeay32.lib', 1); | ||||
| 		} | ||||
| 	} | ||||
| 	if ($self->{options}->{nls}) | ||||
| 	{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user