summaryrefslogtreecommitdiff
path: root/classes/glx-use-tls.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/glx-use-tls.bbclass')
-rw-r--r--classes/glx-use-tls.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/glx-use-tls.bbclass b/classes/glx-use-tls.bbclass
new file mode 100644
index 0000000000..7530872fa4
--- /dev/null
+++ b/classes/glx-use-tls.bbclass
@@ -0,0 +1,7 @@
+def get_tls_setting(bb, d):
+ # until we have no prober TLS support in uclibc disable it
+ if bb.data.getVar('TARGET_OS', d, 1).find('uclibc') >= 0 :
+ return ""
+ return "--enable-glx-tls"
+
+EXTRA_OECONF += "${@get_tls_setting(bb, d)}"