From c3e4665172c238214528cbb7b64fb1b31a94eb91 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 27 Feb 2010 15:49:33 +0100 Subject: [PATCH] glibc: use -mno-tls-direct-seg-refs on i686, to avoid performance issues with Xen. --HG-- extra : convert_revision : 43faf4e611d5d6b402db5394d77429f6ca7d31cb --- srcpkgs/glibc/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/glibc/template b/srcpkgs/glibc/template index 6bffb908e8b..8251cec4086 100644 --- a/srcpkgs/glibc/template +++ b/srcpkgs/glibc/template @@ -22,6 +22,12 @@ long_desc=" as C++ and Objective C; the runtime facilities of other programming languages use the C library to access the underlying operating system." +# Build with -mno-tls-direct-seg-refs to avoid performance problems +# with Xen on x86 32bit. +if [ "${xbps_machine}" = "i686" ]; then + CFLAGS="-mno-tls-direct-seg-refs" +fi + # Don't check for deps here ignore_vdeps_dir="/usr/lib/gconv"