summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/linux.config9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/linux.config b/config/linux.config
index d066b600..f786bee5 100644
--- a/config/linux.config
+++ b/config/linux.config
@@ -4,10 +4,17 @@
# PLEASE, DO NOT EDIT THIS FILE
import os
+from cerbero.utils import shell
+from cerbero.utils import messages as m
from cerbero.config import Architecture, Distro
+vlist = ['alsa', 'x11', 'pulse', 'cdparanoia', 'v4l2', 'gi', 'unwind']
+if '--export-dynamic-symbol' in shell.check_output(['ld', '--help']):
+ vlist += ['rust']
+elif prefix != build_tools_prefix:
+ m.warning('Disabling rust variant: binutils is too old, need >=2.36')
# Set default values for some optional variants
-variants.override(['alsa', 'x11', 'pulse', 'cdparanoia', 'v4l2', 'gi', 'unwind', 'rust'])
+variants.override(vlist)
for f in ['CPPFLAGS', 'CFLAGS', 'CCASFLAGS', 'CXXFLAGS', 'LDFLAGS',
'OBJCFLAGS']: