summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorwoglinde <heinold@inf.fu-berlin.de>2009-01-10 02:28:47 +0100
committerwoglinde <heinold@inf.fu-berlin.de>2009-01-10 02:28:47 +0100
commitb527d8f723c98c77f2f5c5358062e5348493d767 (patch)
treed3f9211c3b80905e3f88197a79edcb0b37408606 /packages
parentb535880db034fa7a92d62320a9c22d02a6322922 (diff)
mesa: disable tls for uclibc
* uclibc has no proper TLS support so disable it * no bump of PR because its not changing the behavior on glibc and for uclibc it has been not buildable
Diffstat (limited to 'packages')
-rw-r--r--packages/mesa/mesa-common.inc5
-rw-r--r--packages/mesa/mesa-tls.inc6
2 files changed, 10 insertions, 1 deletions
diff --git a/packages/mesa/mesa-common.inc b/packages/mesa/mesa-common.inc
index 9bb7d3ef01..9cd10eb3e3 100644
--- a/packages/mesa/mesa-common.inc
+++ b/packages/mesa/mesa-common.inc
@@ -15,7 +15,10 @@ inherit autotools pkgconfig
EXTRA_OECONF = "--enable-glu \
--disable-glw \
--disable-glut \
- --enable-glx-tls"
+ "
+
+require mesa-tls.inc
+EXTRA_OECONF += "${@get_tls_setting(bb, d)} "
PACKAGES =+ "libglu libglu-dev libosmesa libosmesa-dev libgl libgl-dev"
FILES_libgl = "${libdir}/libGL.so.*"
diff --git a/packages/mesa/mesa-tls.inc b/packages/mesa/mesa-tls.inc
new file mode 100644
index 0000000000..1472aa7e74
--- /dev/null
+++ b/packages/mesa/mesa-tls.inc
@@ -0,0 +1,6 @@
+
+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"