diff --git a/libyuv.gyp b/libyuv.gyp index 9cbf641e4..f2a999dd1 100644 --- a/libyuv.gyp +++ b/libyuv.gyp @@ -21,7 +21,13 @@ # Disable use of sysroot for Linux. It's enabled by default in Chromium, # but it currently lacks the libudev-dev package. # TODO(kjellander): Remove when crbug.com/561584 is fixed. - 'use_sysroot': 0, + 'conditions': [ + ['target_arch=="ia32" or target_arch=="x64"', { + 'use_sysroot': 0, + }, { + 'use_sysroot%': 1, + }], + ], }, 'use_sysroot%': '<(use_sysroot)', 'use_system_libjpeg%': 0,