mesa: disable tls for uclibc
authorwoglinde <heinold@inf.fu-berlin.de>
Sat, 10 Jan 2009 01:28:47 +0000 (02:28 +0100)
committerwoglinde <heinold@inf.fu-berlin.de>
Sat, 10 Jan 2009 01:28:47 +0000 (02:28 +0100)
* 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

packages/mesa/mesa-common.inc
packages/mesa/mesa-tls.inc [new file with mode: 0644]

index 9bb7d3e..9cd10eb 100644 (file)
@@ -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 (file)
index 0000000..1472aa7
--- /dev/null
@@ -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"