diff options
-rw-r--r-- | packages/mesa/mesa-common.inc | 5 | ||||
-rw-r--r-- | packages/mesa/mesa-tls.inc | 6 |
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" |