Skip to content

Commit a35f5d7

Browse files
committed
Windows: Only compile with libmongocrypt if we find an SSL library
1 parent 6033282 commit a35f5d7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

config.w32

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if (PHP_MONGODB != "no") {
224224
WARNING("mongodb libsasl support not enabled, libs not found");
225225
}
226226

227-
if (PHP_CLIENT_SIDE_ENCRYPTION != "no") {
227+
if (PHP_CLIENT_SIDE_ENCRYPTION != "no" && mongoc_ssl_found) {
228228
mongoc_opts.MONGOC_ENABLE_CLIENT_SIDE_ENCRYPTION = 1;
229229

230230
PHP_MONGODB_CFLAGS += "\
@@ -254,10 +254,8 @@ if (PHP_MONGODB != "no") {
254254
ADD_SOURCES(configure_module_dirname + "/src/libmongocrypt/src", PHP_MONGODB_MONGOCRYPT_SOURCES, "mongodb");
255255
ADD_SOURCES(configure_module_dirname + "/src/libmongocrypt/kms-message/src", PHP_MONGODB_MONGOCRYPT_KMS_MESSAGE_SOURCES, "mongodb");
256256

257-
if (mongoc_ssl_found) {
258-
mongoc_opts.MONGOCRYPT_ENABLE_CRYPTO = 1;
259-
mongoc_opts.MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO = 1;
260-
}
257+
mongoc_opts.MONGOCRYPT_ENABLE_CRYPTO = 1;
258+
mongoc_opts.MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO = 1;
261259

262260
mongodb_generate_header(
263261
configure_module_dirname + "/src/libmongocrypt/src/mongocrypt-config.h.in",

0 commit comments

Comments
 (0)