glibc: add -O2 optimization for i686 build.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Template file for 'glibc'
|
||||
pkgname=glibc
|
||||
version=2.14.1
|
||||
revision=5
|
||||
revision=6
|
||||
distfiles="http://ftp.gnu.org/gnu/glibc/glibc-${version}.tar.bz2"
|
||||
short_desc="The GNU C library"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
@@ -46,7 +46,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 -march=${XBPS_MACHINE%%-*}"
|
||||
cflags="-mno-tls-direct-seg-refs -O2 -march=${XBPS_MACHINE%%-*}"
|
||||
echo "CFLAGS=$cflags" >> configparms
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user