1 # Maintainer: Anatol Pomozov
2 # Maintainer: Eli Schwartz <eschwartz@archlinux.org>
4 _target=aarch64-linux-gnu
8 pkgdesc="GNU C Library ARM64 target"
10 url='https://www.gnu.org/software/libc/'
11 license=('GPL' 'LGPL')
12 depends=($_target-gcc $_target-linux-api-headers)
14 options=(!buildflags !strip staticlibs)
15 source=(https://ftp.gnu.org/gnu/libc/glibc-$pkgver.tar.xz{,.sig})
16 sha256sums=('2257eff111a1815d74f46856daaf40b019c1e553156c69d48ba0cbfc1bb91a43'
18 validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # "Carlos O'Donell <carlos@systemhalted.org>"
19 BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
28 echo 'slibdir=/lib' >> configparms
29 echo 'rtlddir=/lib' >> configparms
30 echo 'sbindir=/bin' >> configparms
31 echo 'rootsbindir=/bin' >> configparms
33 # remove hardening options for building libraries
34 export CFLAGS="-U_FORTIFY_SOURCE -mlittle-endian -O2"
35 export CPPFLAGS="-U_FORTIFY_SOURCE -O2"
39 export CC=${_target}-gcc
40 export CXX=${_target}-g++
41 export AR=${_target}-ar
42 export RANLIB=${_target}-ranlib
44 ../glibc-$pkgver/configure \
49 --includedir=/include \
52 --with-headers=/usr/$_target/include \
53 --with-bugurl=https://bugs.archlinux.org/ \
55 --enable-obsolete-rpc \
56 --enable-kernel=2.6.32 \
59 --enable-stackguard-randomization \
60 --enable-lock-elision \
64 echo 'build-programs=no' >> configparms
71 make install_root="$pkgdir"/usr/$_target install
73 rm -r "$pkgdir"/usr/$_target/{etc,usr/share,var}