Index: tools/gn/secondary/third_party/nss/BUILD.gn |
diff --git a/tools/gn/secondary/third_party/nss/BUILD.gn b/tools/gn/secondary/third_party/nss/BUILD.gn |
index e175904d4ea16064c29ca45b5c0476f9e8c2fa61..340180dacfc15f89ab8e40cca251dee8d640b317 100644 |
--- a/tools/gn/secondary/third_party/nss/BUILD.gn |
+++ b/tools/gn/secondary/third_party/nss/BUILD.gn |
@@ -4,9 +4,17 @@ |
import("//build/config/linux/pkg_config.gni") |
-# On Linux we always use the system NSS except for SSL. |
if (is_linux) { |
- pkg_config("nss_linux_config") { |
+ # This is a dependency on NSS with no libssl. On Linux we use a built-in SSL |
+ # library but the system NSS libraries. Non-Linux platforms using NSS use the |
+ # hermetic one in //third_party/nss. |
+ # |
+ # Generally you should depend on //crypto:platform instead of using this |
+ # config since that will properly pick up NSS or OpenSSL depending on |
+ # platform and build config. |
+ pkg_config("system_nss_no_ssl_config") { |
packages = [ "nss" ] |
+ extra_args = [ "-v", "-lssl3" ] |
} |
} |
+ |