Index: net/net.gyp |
diff --git a/net/net.gyp b/net/net.gyp |
index fb55d21a90265a66082c40b784df50cc1c00ab53..182d81bf02186cdad1240cfac08c23cebefa2e6f 100644 |
--- a/net/net.gyp |
+++ b/net/net.gyp |
@@ -6,7 +6,16 @@ |
'variables': { |
'chromium_code': 1, |
- 'use_kerberos%': 1, |
+ 'linux_link_kerberos%': 0, |
+ 'conditions': [ |
+ ['chromeos==1', { |
+ # Disable Kerberos on ChromeOS, at least for now. |
+ # It needs configuration (krb5.conf and so on). |
+ 'use_kerberos%': 0, |
+ }, { # chromeos == 0 |
+ 'use_kerberos%': 1, |
+ }], |
+ ], |
}, |
'targets': [ |
{ |
@@ -710,6 +719,19 @@ |
'defines': [ |
'USE_KERBEROS', |
], |
+ 'conditions': [ |
+ ['linux_link_kerberos==1', { |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(krb5-config --libs gssapi)', |
+ ], |
+ }, |
+ }, { # linux_link_kerberos==0 |
+ 'defines': [ |
+ 'DLOPEN_KERBEROS', |
+ ], |
+ }], |
+ ], |
}, { # use_kerberos == 0 |
'sources!': [ |
'http/http_auth_gssapi_posix.cc', |