Browse Source

X11: Do not force require system OpenSSL to build

Rémi Verschelde 8 năm trước cách đây
mục cha
commit
3a8550675f
1 tập tin đã thay đổi với 2 bổ sung8 xóa
  1. 2 8
      platform/x11/detect.py

+ 2 - 8
platform/x11/detect.py

@@ -20,9 +20,8 @@ def can_build():
     if sys.platform == "darwin":
         return False  # no x11 on mac for now
 
-    errorval = os.system("pkg-config --version > /dev/null")
-
-    if (errorval):
+    x11_error = os.system("pkg-config --version > /dev/null")
+    if (x11_error):
         print("pkg-config not found.. x11 disabled.")
         return False
 
@@ -31,11 +30,6 @@ def can_build():
         print("X11 not found.. x11 disabled.")
         return False
 
-    ssl_error = os.system("pkg-config openssl --modversion > /dev/null ")
-    if (ssl_error):
-        print("OpenSSL not found.. x11 disabled.")
-        return False
-
     x11_error = os.system("pkg-config xcursor --modversion > /dev/null ")
     if (x11_error):
         print("xcursor not found.. x11 disabled.")