mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
core/glibc to 2.14-5
This commit is contained in:
parent
603dd0f456
commit
6efee1ad84
1 changed files with 18 additions and 3 deletions
|
@ -15,15 +15,15 @@ noautobuild=1
|
||||||
|
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
pkgver=2.14
|
pkgver=2.14
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
_glibcdate=20110617
|
_glibcdate=20110617
|
||||||
pkgdesc="GNU C Library"
|
pkgdesc="GNU C Library"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://www.gnu.org/software/libc"
|
url="http://www.gnu.org/software/libc"
|
||||||
license=('GPL' 'LGPL')
|
license=('GPL' 'LGPL')
|
||||||
groups=('base')
|
groups=('base')
|
||||||
depends=('linux-api-headers>=2.6.39' 'tzdata')
|
depends=('linux-api-headers>=3.0' 'tzdata')
|
||||||
makedepends=('gcc>=4.4')
|
makedepends=('gcc>=4.6')
|
||||||
backup=(etc/locale.gen
|
backup=(etc/locale.gen
|
||||||
etc/nscd.conf)
|
etc/nscd.conf)
|
||||||
options=('!strip' '!distcc' '!ccache')
|
options=('!strip' '!distcc' '!ccache')
|
||||||
|
@ -130,6 +130,10 @@ build() {
|
||||||
|
|
||||||
echo "slibdir=/lib" >> configparms
|
echo "slibdir=/lib" >> configparms
|
||||||
|
|
||||||
|
# remove hardening options from CFLAGS for building libraries
|
||||||
|
CFLAGS=${CFLAGS/-fstack-protector/}
|
||||||
|
CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
|
||||||
|
|
||||||
${srcdir}/glibc/configure --prefix=/usr \
|
${srcdir}/glibc/configure --prefix=/usr \
|
||||||
--libdir=/usr/lib --libexecdir=/usr/lib \
|
--libdir=/usr/lib --libexecdir=/usr/lib \
|
||||||
--with-headers=/usr/include \
|
--with-headers=/usr/include \
|
||||||
|
@ -140,7 +144,18 @@ build() {
|
||||||
--without-cvs --disable-profile \
|
--without-cvs --disable-profile \
|
||||||
--disable-multi-arch $CONFIGFLAG
|
--disable-multi-arch $CONFIGFLAG
|
||||||
|
|
||||||
|
# build libraries with hardening disabled
|
||||||
|
echo "build-programs=no" >> configparms
|
||||||
make $MAKEFLAG
|
make $MAKEFLAG
|
||||||
|
|
||||||
|
# re-enable hardening for programs
|
||||||
|
sed -i "s#=no#=yes#" configparms
|
||||||
|
echo "CC += -fstack-protector -D_FORTIFY_SOURCE=2" >> configparms
|
||||||
|
echo "CXX += -fstack-protector -D_FORTIFY_SOURCE=2" >> configparms
|
||||||
|
make
|
||||||
|
|
||||||
|
# remove harding in preparation to run test-suite
|
||||||
|
sed -i '2,4d' configparms
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
|
Loading…
Reference in a new issue