glibc: don't munge cflags into configparams for i686
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'glibc'
|
# Template file for 'glibc'
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
version=2.16.0
|
version=2.16.0
|
||||||
revision=2
|
revision=3
|
||||||
short_desc="The GNU C library"
|
short_desc="The GNU C library"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.gnu.org/software/libc"
|
homepage="http://www.gnu.org/software/libc"
|
||||||
@@ -31,8 +31,7 @@ do_configure() {
|
|||||||
# Build with -mno-tls-direct-seg-refs to avoid performance problems
|
# Build with -mno-tls-direct-seg-refs to avoid performance problems
|
||||||
# with Xen on x86 32bit.
|
# with Xen on x86 32bit.
|
||||||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
||||||
cflags="-mno-tls-direct-seg-refs -O2 -march=${XBPS_MACHINE%%-*}"
|
export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
|
||||||
echo "CFLAGS=$cflags" >> configparms
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
../configure ${CONFIGURE_SHARED_ARGS} --with-tls \
|
../configure ${CONFIGURE_SHARED_ARGS} --with-tls \
|
||||||
|
|||||||
Reference in New Issue
Block a user