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"