openssl: unconditionally define BR2_PACKAGE_PROVIDES_HOST_OPENSSL
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 22 Oct 2017 11:56:01 +0000 (13:56 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 22 Oct 2017 12:04:48 +0000 (14:04 +0200)
Fixes:
http://autobuild.buildroot.net/results/207/207d0ca1fe5328e675246c851fcb0d5685f8c0bd/
http://autobuild.buildroot.net/results/546/546a56d6dd39e5e9ecfe25fd36a00510e6c0c45b/

host-openssl may be used without openssl being enabled for the target, so
move BR2_PACKAGE_PROVIDES_HOST_OPENSSL outside the BR2_PACKAGE_OPENSSL
conditional.

While we're at it, add a comment explaining what this magic config symbol does.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/openssl/Config.in

index df1d1172578b45b9e8b7653994dcac8e3044c670..e33320afc59115a8fd8f1bb49d61471dabdeec53 100644 (file)
@@ -76,8 +76,9 @@ config BR2_PACKAGE_PROVIDES_OPENSSL
        default "libopenssl"  if BR2_PACKAGE_LIBOPENSSL
        default "libressl"  if BR2_PACKAGE_LIBRESSL
 
+endif
+
+# ensure libopenssl is used for the host variant
 config BR2_PACKAGE_PROVIDES_HOST_OPENSSL
        string
        default "host-libopenssl"
-
-endif