if (is_mac || is_win) {
defines = [ "NSS_PLATFORM_CLIENT_AUTH" ]
}
+
+ if (is_clang) {
+ cflags = [
+ # There is a broken header guard in /usr/include/nss/secmod.h:
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
+ "-Wno-header-guard",
+ ]
+ }
}
component("libssl") {
"unix_err.c",
"unix_err.h",
]
- sources += [ "exports_win.def" ]
+ if (component_mode == "shared_library") {
+ ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ]
+ }
} else if (is_linux) {
if (component_mode == "shared_library") {
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
]
}
- if (is_clang) {
- cflags += [
- # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
- # system's cert.h because cert.h isn't in chromium's repo.
- "-Wno-incompatible-pointer-types",
-
- # There is a broken header guard in /usr/include/nss/secmod.h:
- # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
- "-Wno-header-guard",
- ]
- }
-
if (is_debug) {
defines += [ "DEBUG" ]
}