glibc: don't munge cflags into configparams for i686

This commit is contained in:
davehome 2012-07-01 05:41:23 -06:00
parent 93c1316909
commit e88ff47423

View file

@ -1,7 +1,7 @@
# Template file for 'glibc'
pkgname=glibc
version=2.16.0
revision=2
revision=3
short_desc="The GNU C library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnu.org/software/libc"
@ -31,8 +31,7 @@ do_configure() {
# 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 -O2 -march=${XBPS_MACHINE%%-*}"
echo "CFLAGS=$cflags" >> configparms
export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
fi
../configure ${CONFIGURE_SHARED_ARGS} --with-tls \