summaryrefslogtreecommitdiffstats
path: root/crypto/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/BUILD.gn')
-rw-r--r--crypto/BUILD.gn10
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/BUILD.gn b/crypto/BUILD.gn
index 110868d..455169c 100644
--- a/crypto/BUILD.gn
+++ b/crypto/BUILD.gn
@@ -264,8 +264,16 @@ group("platform") {
if (is_linux) {
# On Linux, we use the system NSS (excepting SSL where we always use our
# own).
+ #
+ # We always need our SSL header search path to come before the system one
+ # so our versions are used. The libssl target will add the search path we
+ # want, but according to GN's ordering rules, direct_dependent_configs'
+ # search path will get applied before ones inherited from our
+ # dependencies. Therefore, we need to explicitly list our custom libssl's
+ # config here before the system one.
direct_dependent_configs = [
- "//third_party/nss:system_nss_no_ssl_config"
+ "//net/third_party/nss/ssl:ssl_config",
+ "//third_party/nss:system_nss_no_ssl_config",
]
} else {
# Non-Linux platforms use the hermetic NSS from the tree.