glibc: add patch (via alarm) to fix ld.so.cache on armhf.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Template file for 'glibc'
|
||||
pkgname=glibc
|
||||
version=2.17
|
||||
revision=4
|
||||
revision=5
|
||||
short_desc="The GNU C library"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.gnu.org/software/libc"
|
||||
@@ -24,11 +24,7 @@ nostrip_files="
|
||||
conf_files="/etc/rpc /etc/ld.so.conf"
|
||||
subpackages="glibc-devel glibc-locales nscd"
|
||||
depends="base-files glibc-locales"
|
||||
makedepends="bison perl kernel-libc-headers>=3.7<3.8"
|
||||
|
||||
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
||||
makedepends="bison perl"
|
||||
fi
|
||||
hostmakedepends="bison perl kernel-libc-headers>=3.7<3.8"
|
||||
|
||||
do_configure() {
|
||||
local _headers _floatabi
|
||||
@@ -39,17 +35,17 @@ do_configure() {
|
||||
echo "bindir=/usr/bin" >> configparms
|
||||
echo "sbindir=/usr/sbin" >> configparms
|
||||
|
||||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
||||
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||
# Build with -mno-tls-direct-seg-refs to avoid performance
|
||||
# problems with Xen on x86 32bit.
|
||||
export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
|
||||
elif [ "$XBPS_MACHINE" = "armv6l" ]; then
|
||||
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||
# Force hard float ABI.
|
||||
# To build for soft float: --with-float=soft --without-fp.
|
||||
_floatabi="--with-float=hard"
|
||||
fi
|
||||
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
||||
_headers="--with-headers=/usr/$XBPS_CROSS_TRIPLET/include"
|
||||
if [ "$XBPS_CROSS_BUILD" ]; then
|
||||
_headers="--with-headers=$XBPS_CROSS_BASE/include"
|
||||
else
|
||||
_headers="--with-headers=/usr/include"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user