diff --git a/contrib/src/libressl/rules.mak b/contrib/src/libressl/rules.mak
index 3f4853d587079b6546461ae466a736bdb36c2b85..2c17840b48c90d5113eedbba9e2128b0e79b9954 100644
--- a/contrib/src/libressl/rules.mak
+++ b/contrib/src/libressl/rules.mak
@@ -25,7 +25,7 @@ LIBRESSL_URL := https://github.com/libressl-portable/portable/archive/$(LIBRESSL
 OPENBSD_URL := https://github.com/libressl-portable/openbsd/archive/$(OPENBSD_VERSION).tar.gz
 
 # Check if openssl or libressl is already present on the system
-ifeq ($(call need_pkg,"openssl >= 1.0.0" || call need_pkg,"libressl >= 1.0.0"),)
+ifeq ($(or $(call need_pkg,"openssl >= 1.0.0"),$(call need_pkg,"libressl >= 1.0.0")),)
 PKGS_FOUND += libressl
 endif