Index: webrtc/modules/audio_device/BUILD.gn |
diff --git a/webrtc/modules/audio_device/BUILD.gn b/webrtc/modules/audio_device/BUILD.gn |
index 2568ef3cc8b1fd1123c8d00e739c896b0cca5bb9..2f678d6dc082529657946346d84dac3e36960508 100644 |
--- a/webrtc/modules/audio_device/BUILD.gn |
+++ b/webrtc/modules/audio_device/BUILD.gn |
@@ -137,10 +137,10 @@ rtc_static_library("audio_device") { |
"linux/latebindingsymboltable_linux.h", |
] |
defines += [ "LINUX_ALSA" ] |
- libs = [ |
- "dl", |
- "X11", |
- ] |
+ libs = [ "dl" ] |
+ if (use_x11) { |
+ libs += [ "X11" ] |
+ } |
if (rtc_include_pulse_audio) { |
sources += [ |
"linux/audio_device_pulse_linux.cc", |