summaryrefslogtreecommitdiff
path: root/libre/aarch64-linux-gnu-glibc/PKGBUILD
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-07-13 13:19:21 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-07-15 03:33:24 -0400
commit3db6372809ed0b37a2d11a072b34230ec0d6a8af (patch)
tree77db2ea4ee1cc1d56536d08995c2b314569a6772 /libre/aarch64-linux-gnu-glibc/PKGBUILD
parent9e0a739c4714eb2d9355cb345ef1f7dd263d4a4d (diff)
downloadabslibre-3db6372809ed0b37a2d11a072b34230ec0d6a8af.tar.gz
abslibre-3db6372809ed0b37a2d11a072b34230ec0d6a8af.tar.bz2
abslibre-3db6372809ed0b37a2d11a072b34230ec0d6a8af.zip
[aarch64-linux-gnu-binutils][aarch64-linux-gnu-gcc-initial][aarch64-linux-gnu-gcc][aarch64-linux-gnu-glibc][aarch64-linux-gnu-linux-libre-api-headers] restore aarch64 cross-compiler for armv7h
Diffstat (limited to 'libre/aarch64-linux-gnu-glibc/PKGBUILD')
-rw-r--r--libre/aarch64-linux-gnu-glibc/PKGBUILD75
1 files changed, 75 insertions, 0 deletions
diff --git a/libre/aarch64-linux-gnu-glibc/PKGBUILD b/libre/aarch64-linux-gnu-glibc/PKGBUILD
new file mode 100644
index 000000000..35a056338
--- /dev/null
+++ b/libre/aarch64-linux-gnu-glibc/PKGBUILD
@@ -0,0 +1,75 @@
+# Maintainer (arch): Anatol Pomozov <anatol.pomozov@gmail.com>
+# Maintainer (arch): Eli Schwartz <eschwartz@archlinux.org>
+# Maintainers: Parabola hackers <dev@lists.parabola.nu>
+
+_target=aarch64-linux-gnu
+pkgname=$_target-glibc
+pkgver=2.35
+pkgrel=1
+pkgdesc="GNU C Library ARM64 target"
+arch=(any)
+url='https://www.gnu.org/software/libc/'
+license=('GPL' 'LGPL')
+depends=($_target-gcc $_target-linux-api-headers)
+makedepends=(python)
+options=(!buildflags !strip staticlibs)
+source=(https://ftp.gnu.org/gnu/libc/glibc-$pkgver.tar.xz{,.sig})
+sha256sums=('5123732f6b67ccd319305efd399971d58592122bcc2a6518a1bd2510dd0cf52e'
+ 'SKIP')
+validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # "Carlos O'Donell <carlos@systemhalted.org>"
+ BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
+
+prepare() {
+ mkdir -p glibc-build
+}
+
+build() {
+ cd glibc-build
+
+ echo "slibdir=/lib" >> configparms
+ echo "rtlddir=/lib" >> configparms
+ echo "sbindir=/bin" >> configparms
+ echo "rootsbindir=/bin" >> configparms
+
+ # remove hardening options for building libraries
+ export CFLAGS="-U_FORTIFY_SOURCE -mlittle-endian -O2"
+ export CPPFLAGS="-U_FORTIFY_SOURCE -O2"
+ unset LD_LIBRARY_PATH
+
+ export BUILD_CC=gcc
+ export CC=${_target}-gcc
+ export CXX=${_target}-g++
+ export AR=${_target}-ar
+ export RANLIB=${_target}-ranlib
+
+ ../glibc-$pkgver/configure \
+ --prefix=/usr \
+ --target=$_target \
+ --host=$_target \
+ --build=$CHOST \
+ --includedir=/include \
+ --libdir=/lib \
+ --libexecdir=/lib \
+ --with-headers=/usr/$_target/include \
+ --with-bugurl=https://bugs.archlinux.org/ \
+ --enable-add-ons \
+ --enable-obsolete-rpc \
+ --enable-kernel=2.6.32 \
+ --enable-bind-now \
+ --disable-profile \
+ --enable-stackguard-randomization \
+ --enable-lock-elision \
+ --enable-multi-arch \
+ --disable-werror
+
+ echo "build-programs=no" >> configparms
+ make
+}
+
+package() {
+ cd glibc-build
+
+ make install_root="$pkgdir"/usr/$_target install
+
+ rm -r "$pkgdir"/usr/$_target/{etc,usr/share,var}
+}