# Automatically generated aport, do not edit! # Generator: pmbootstrap aportgen gcc-armv7 # Based on: main/gcc (from Alpine) CTARGET_ARCH=armv7 CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})" LANG_D=false LANG_OBJC=false LANG_JAVA=false LANG_GO=false LANG_FORTRAN=false LANG_ADA=false options="!strip !tracedeps" # abuild doesn't try to tries to install "build-base-$CTARGET_ARCH" # when this variable matches "no*" BOOTSTRAP="nobuildbase" # abuild will only cross compile when this variable is set, but it # needs to find a valid package database in there for dependency # resolving, so we set it to /. CBUILDROOT="/" _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname=gcc-armv7 _pkgbase=10.2.1 pkgver=10.2.1_pre2 [ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2" [ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross="" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armv7 pkgrel=0 pkgdesc="Stage2 cross-compiler for armv7" url="https://gcc.gnu.org" arch="x86_64" license="GPL-2.0-or-later LGPL-2.1-or-later" _gccrel=$pkgver-r$pkgrel depends="isl binutils-armv7 mpc1" makedepends_build="gcc g++ paxmark bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev" makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-armv7 binutils-armv7" subpackages="g++-armv7:gpp" [ "$CHOST" = "$CTARGET" ] && subpackages="gcc-doc$_target" replaces="libstdc++ binutils" : "${LANG_CXX:=true}" : "${LANG_D:=true}" : "${LANG_OBJC:=true}" : "${LANG_GO:=true}" : "${LANG_FORTRAN:=true}" : "${LANG_ADA:=true}" _libgomp=true _libgcc=true _libatomic=true _libitm=true if [ "$CHOST" != "$CTARGET" ]; then if [ "$BOOTSTRAP" = nolibc ]; then LANG_CXX=false LANG_ADA=false _libgcc=false _builddir="$srcdir/build-cross-pass2" else _builddir="$srcdir/build-cross-final" fi LANG_OBJC=false LANG_GO=false LANG_FORTRAN=false LANG_D=false _libgomp=false _libatomic=false _libitm=false # reset target flags (should be set in crosscreate abuild) # fixup flags. seems gcc treats CPPFLAGS as global without # _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS. export CFLAGS="$CPPFLAGS $CFLAGS" export CXXFLAGS="$CPPFLAGS $CXXFLAGS" unset CPPFLAGS export CFLAGS_FOR_TARGET=" " export CXXFLAGS_FOR_TARGET=" " export LDFLAGS_FOR_TARGET=" " STRIP_FOR_TARGET="$CTARGET-strip" elif [ "$CBUILD" != "$CHOST" ]; then # fixup flags. seems gcc treats CPPFLAGS as global without # _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS. export CFLAGS="$CPPFLAGS $CFLAGS" export CXXFLAGS="$CPPFLAGS $CXXFLAGS" unset CPPFLAGS # reset flags and cc for build export CC_FOR_BUILD="gcc" export CXX_FOR_BUILD="g++" export CFLAGS_FOR_BUILD=" " export CXXFLAGS_FOR_BUILD=" " export LDFLAGS_FOR_BUILD=" " export CFLAGS_FOR_TARGET=" " export CXXFLAGS_FOR_TARGET=" " export LDFLAGS_FOR_TARGET=" " # Languages that do not need bootstrapping LANG_OBJC=false LANG_GO=false LANG_FORTRAN=false LANG_D=false STRIP_FOR_TARGET=${CROSS_COMPILE}strip _builddir="$srcdir/build-cross-native" else STRIP_FOR_TARGET=${CROSS_COMPILE}strip _builddir="$srcdir/build" fi # GDC hasn't been ported to PowerPC # See libphobos/configure.tgt in GCC sources for supported targets [ "$CARCH" = ppc64le ] && LANG_D=false # libitm has TEXTRELs in ARM build, so disable for now case "$CTARGET_ARCH" in arm*) _libitm=false ;; mips*) _libitm=false ;; esac # Internal libffi fails to build on MIPS at the moment, need to # investigate further. We disable LANG_GO on mips64 as it requires # the internal libffi. case "$CTARGET_ARCH" in mips*) LANG_GO=false ;; esac # Fortran uses libquadmath if toolchain has __float128 # currently on x86, x86_64 and ia64 _libquadmath=$LANG_FORTRAN case "$CTARGET_ARCH" in x86 | x86_64) _libquadmath=$LANG_FORTRAN ;; *) _libquadmath=false ;; esac # libatomic is a dependency for openvswitch $_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH" $_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH" $_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH" if $_libgomp; then depends="$depends libgomp=$_gccrel" subpackages="$subpackages libgomp::$CTARGET_ARCH" fi _languages=c if $LANG_CXX; then _languages="$_languages,c++" fi if $LANG_D; then subpackages="$subpackages libgphobos::$CTARGET_ARCH gcc-gdc$_target:gdc" _languages="$_languages,d" makedepends_build="$makedepends_build libucontext-dev" fi if $LANG_OBJC; then subpackages="$subpackages libobjc::$CTARGET_ARCH gcc-objc$_target:objc" _languages="$_languages,objc" fi if $LANG_GO; then subpackages="$subpackages libgo::$CTARGET_ARCH gcc-go$_target:go" _languages="$_languages,go" fi if $LANG_FORTRAN; then subpackages="$subpackages libgfortran::$CTARGET_ARCH gfortran$_target:gfortran" _languages="$_languages,fortran" fi if $LANG_ADA; then subpackages="$subpackages libgnat-static:libgnatstatic:$CTARGET_ARCH libgnat::$CTARGET_ARCH gcc-gnat$_target:gnat" _languages="$_languages,ada" [ "$CBUILD" = "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat-bootstrap" [ "$CBUILD" != "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross" fi makedepends="$makedepends_build $makedepends_host" # when using upstream releases, use this URI template # https://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$pkgver}/gcc-${_pkgbase:-$pkgver}.tar.xz # # right now, we are using a git snapshot. # # PLEASE submit all patches to gcc to https://gitlab.alpinelinux.org/kaniini/alpine-gcc-patches, # so that they can be properly tracked and easily rebased if needed. source="https://dev.alpinelinux.org/~nenolod/gcc-${pkgver}.tar.xz 0001-posix_memalign.patch 0002-gcc-poison-system-directories.patch 0003-Turn-on-Wl-z-relro-z-now-by-default.patch 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch 0006-Enable-Wformat-and-Wformat-security-by-default.patch 0007-Enable-Wtrampolines-by-default.patch 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch 0011-libiberty-copy-PIC-objects-during-build-process.patch 0012-libitm-disable-FORTIFY.patch 0013-libgcc_s.patch 0014-nopie.patch 0015-libffi-use-__linux__-instead-of-__gnu_linux__-for-mu.patch 0016-dlang-update-zlib-binding.patch 0017-dlang-fix-fcntl-on-mips-add-libucontext-dep.patch 0018-ada-fix-shared-linking.patch 0019-build-fix-CXXFLAGS_FOR_BUILD-passing.patch 0020-add-fortify-headers-paths.patch 0021-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch 0022-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch 0023-Pure-64-bit-MIPS.patch 0024-use-pure-64-bit-configuration-where-appropriate.patch 0025-always-build-libgcc_eh.a.patch 0026-ada-libgnarl-compatibility-for-musl.patch 0027-ada-musl-support-fixes.patch 0028-gcc-go-Use-_off_t-type-instead-of-_loff_t.patch 0029-gcc-go-Don-t-include-sys-user.h.patch 0030-gcc-go-Fix-ucontext_t-on-PPC64.patch 0031-gcc-go-Fix-handling-of-signal-34-on-musl.patch 0032-gcc-go-Use-int64-type-as-offset-argument-for-mmap.patch 0033-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch 0034-gcc-go-signal-34-is-special-on-musl-libc.patch 0035-gcc-go-Prefer-_off_t-over-_off64_t.patch 0036-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.patch 0037-gcc-go-link-to-libucontext.patch 0038-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch 0039-CRuntime_Musl-Support-v1.2.0-for-32-bits.patch 0040-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch " # we build out-of-tree _gccdir="$srcdir"/gcc-$pkgver _gcclibdir="/usr/lib/gcc/$CTARGET/${_pkgbase:-$pkgver}" _gcclibexec="/usr/libexec/gcc/$CTARGET/${_pkgbase:-$pkgver}" prepare() { cd "$_gccdir" _err= for i in $source; do case "$i" in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || _err="$_err $i" ;; esac done if [ -n "$_err" ]; then error "The following patches failed:" for i in $_err; do echo " $i" done return 1 fi echo ${_pkgbase:-$pkgver} > gcc/BASE-VER } build() { local _arch_configure= local _libc_configure= local _bootstrap_configure= local _symvers= cd "$_gccdir" case "$CTARGET" in aarch64-*-*-*) _arch_configure="--with-arch=armv8-a --with-abi=lp64";; armv5-*-*-*eabi) _arch_configure="--with-arch=armv5te --with-tune=arm926ej-s --with-float=soft --with-abi=aapcs-linux";; armv6-*-*-*eabihf) _arch_configure="--with-arch=armv6zk --with-tune=arm1176jzf-s --with-fpu=vfp --with-float=hard --with-abi=aapcs-linux";; armv7-*-*-*eabihf) _arch_configure="--with-arch=armv7-a --with-tune=generic-armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-abi=aapcs-linux --with-mode=thumb";; mips-*-*-*) _arch_configure="--with-arch=mips32 --with-mips-plt --with-float=soft --with-abi=32";; mips64-*-*-*) _arch_configure="--with-arch=mips3 --with-tune=mips64 --with-mips-plt --with-float=soft --with-abi=64";; mips64el-*-*-*) _arch_configure="--with-arch=mips3 --with-tune=mips64 --with-mips-plt --with-float=soft --with-abi=64";; mipsel-*-*-*) _arch_configure="--with-arch=mips32 --with-mips-plt --with-float=soft --with-abi=32";; powerpc-*-*-*) _arch_configure="--enable-secureplt --enable-decimal-float=no";; powerpc64*-*-*-*) _arch_configure="--with-abi=elfv2 --enable-secureplt --enable-decimal-float=no --enable-targets=powerpcle-linux";; i486-*-*-*) _arch_configure="--with-arch=i486 --with-tune=generic --enable-cld";; i586-*-*-*) _arch_configure="--with-arch=i586 --with-tune=generic --enable-cld";; s390x-*-*-*) _arch_configure="--with-arch=z196 --with-tune=zEC12 --with-zarch --with-long-double-128 --enable-decimal-float";; esac case "$CTARGET_ARCH" in mips*) _hash_style_configure="--with-linker-hash-style=sysv" ;; *) _hash_style_configure="--with-linker-hash-style=gnu" ;; esac case "$CTARGET_LIBC" in musl) # musl does not support mudflap, or libsanitizer # libmpx uses secure_getenv and struct _libc_fpstate not present in musl # alpine musl provides libssp_nonshared.a, so we don't need libssp either _libc_configure="--disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer" _symvers="--disable-symvers" export libat_cv_have_ifunc=no ;; esac case "$BOOTSTRAP" in nolibc) _bootstrap_configure="--with-newlib --disable-shared --enable-threads=no" ;; *) _bootstrap_configure="--enable-shared --enable-threads --enable-tls" ;; esac $_libgomp || _bootstrap_configure="$_bootstrap_configure --disable-libgomp" $_libatomic || _bootstrap_configure="$_bootstrap_configure --disable-libatomic" $_libitm || _bootstrap_configure="$_bootstrap_configure --disable-libitm" $_libquadmath || _arch_configure="$_arch_configure --disable-libquadmath" msg "Building the following:" echo "" echo " CBUILD=$CBUILD" echo " CHOST=$CHOST" echo " CTARGET=$CTARGET" echo " CTARGET_ARCH=$CTARGET_ARCH" echo " CTARGET_LIBC=$CTARGET_LIBC" echo " languages=$_languages" echo " arch_configure=$_arch_configure" echo " libc_configure=$_libc_configure" echo " cross_configure=$_cross_configure" echo " bootstrap_configure=$_bootstrap_configure" echo " hash_style_configure=$_hash_style_configure" echo "" export CFLAGS="$CFLAGS -O2" mkdir -p "$_builddir" cd "$_builddir" "$_gccdir"/configure --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --build=${CBUILD} \ --host=${CHOST} \ --target=${CTARGET} \ --with-pkgversion="Alpine $pkgver" \ --enable-checking=release \ --disable-fixed-point \ --disable-libstdcxx-pch \ --disable-multilib \ --disable-nls \ --disable-werror \ $_symvers \ --enable-__cxa_atexit \ --enable-default-pie \ --enable-default-ssp \ --enable-cloog-backend \ --enable-languages=$_languages \ $_arch_configure \ $_libc_configure \ $_cross_configure \ $_bootstrap_configure \ --with-system-zlib \ $_hash_style_configure make } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install ln -s gcc "$pkgdir"/usr/bin/cc # we dont support gcj -static # and saving 35MB is not bad. find "$pkgdir" \( -name libgtkpeer.a \ -o -name libgjsmalsa.a \ -o -name libgij.a \) \ -delete # strip debug info from some static libs find "$pkgdir" \( -name libgfortran.a -o -name libobjc.a -o -name libgomp.a \ -o -name libgphobos.a -o -name libgdruntime.a \ -o -name libmudflap.a -o -name libmudflapth.a \ -o -name libgcc.a -o -name libgcov.a -o -name libquadmath.a \ -o -name libitm.a -o -name libgo.a -o -name libcaf\*.a \ -o -name libatomic.a -o -name libasan.a -o -name libtsan.a \) \ -a -type f \ -exec ${STRIP_FOR_TARGET} -g {} + if $_libgomp; then mv "$pkgdir"/usr/lib/libgomp.spec "$pkgdir"/$_gcclibdir fi if $_libitm; then mv "$pkgdir"/usr/lib/libitm.spec "$pkgdir"/$_gcclibdir fi # remove ffi rm -f "$pkgdir"/usr/lib/libffi* "$pkgdir"/usr/share/man/man3/ffi* find "$pkgdir" -name 'ffi*.h' -delete local gdblib=${_target:+$CTARGET/}lib if [ -d "$pkgdir"/usr/$gdblib/ ]; then for i in $(find "$pkgdir"/usr/$gdblib/ -type f -maxdepth 1 -name "*-gdb.py"); do mkdir -p "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib mv "$i" "$pkgdir"/usr/share/gdb/python/auto-load/usr/$gdblib/ done fi # move ada runtime libs if $LANG_ADA; then for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.so"); do mv "$i" "$pkgdir"/usr/lib/ ln -s ../../../../${i##*/} $i done for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.a"); do mv "$i" "$pkgdir"/usr/lib/ ln -s ../../../../${i##*/} $i done fi if [ "$CHOST" != "$CTARGET" ]; then # cross-gcc: remove any files that would conflict with the # native gcc package rm -rf "$pkgdir"/usr/bin/cc "$pkgdir"/usr/include "${pkgdir:?}"/usr/share # libcc1 does not depend on target, don't ship it rm -rf "$pkgdir"/usr/lib/libcc1.so* # fixup gcc library symlinks to be linker scripts so # linker finds the libs from relocated sysroot for so in "$pkgdir"/usr/"$CTARGET"/lib/*.so; do if [ -h "$so" ]; then local _real=$(basename "$(readlink "$so")") rm -f "$so" echo "GROUP ($_real)" > "$so" fi done else # add c89/c99 wrapper scripts cat >"$pkgdir"/usr/bin/c89 <<'EOF' #!/bin/sh _flavor="-std=c89" for opt; do case "$opt" in -ansi|-std=c89|-std=iso9899:1990) _flavor="";; -std=*) echo "$(basename $0) called with non ANSI/ISO C option $opt" >&2 exit 1;; esac done exec gcc $_flavor ${1+"$@"} EOF cat >"$pkgdir"/usr/bin/c99 <<'EOF' #!/bin/sh _flavor="-std=c99" for opt; do case "$opt" in -std=c99|-std=iso9899:1999) _flavor="";; -std=*) echo "$(basename $0) called with non ISO C99 option $opt" >&2 exit 1;; esac done exec gcc $_flavor ${1+"$@"} EOF chmod 755 "$pkgdir"/usr/bin/c?9 # install lto plugin so regular binutils may use it mkdir -p "$pkgdir"/usr/lib/bfd-plugins ln -s /$_gcclibexec/liblto_plugin.so "$pkgdir/usr/lib/bfd-plugins/" fi } libatomic() { pkgdesc="GCC Atomic library" depends= replaces="gcc" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libatomic.so.* "$subpkgdir"/usr/lib/ } libcxx() { pkgdesc="GNU C++ standard runtime library" depends= if [ "$CHOST" = "$CTARGET" ]; then # verify that we are using clock_gettime rather than doing direct syscalls # so we dont break 32 bit arches due to time64. nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime fi mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/ } gpp() { pkgdesc="GNU C++ standard library and compiler" depends="libstdc++=$_gccrel gcc=$_gccrel libc-dev" mkdir -p "$subpkgdir/$_gcclibexec" \ "$subpkgdir"/usr/bin \ "$subpkgdir"/usr/${_target:+$CTARGET/}include \ "$subpkgdir"/usr/${_target:+$CTARGET/}lib \ mv "$pkgdir/$_gcclibexec/cc1plus" "$subpkgdir/$_gcclibexec/" mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/*++* "$subpkgdir"/usr/${_target:+$CTARGET/}lib/ mv "$pkgdir"/usr/${_target:+$CTARGET/}include/c++ "$subpkgdir"/usr/${_target:+$CTARGET/}include/ mv "$pkgdir"/usr/bin/*++ "$subpkgdir"/usr/bin/ } libobjc() { pkgdesc="GNU Objective-C runtime" replaces="objc" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libobjc.so.* "$subpkgdir"/usr/lib/ } objc() { pkgdesc="GNU Objective-C" replaces="gcc" depends="libc-dev gcc=$_gccrel libobjc=$_gccrel" mkdir -p "$subpkgdir/$_gcclibexec" \ "$subpkgdir"/$_gcclibdir/include \ "$subpkgdir"/usr/lib mv "$pkgdir/$_gcclibexec/cc1obj" "$subpkgdir/$_gcclibexec/" mv "$pkgdir"/$_gcclibdir/include/objc "$subpkgdir"/$_gcclibdir/include/ mv "$pkgdir"/usr/lib/libobjc.so "$pkgdir"/usr/lib/libobjc.a \ "$subpkgdir"/usr/lib/ } libgcc() { pkgdesc="GNU C compiler runtime libraries" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libgcc_s.so.* "$subpkgdir"/usr/lib/ } libgomp() { pkgdesc="GCC shared-memory parallel programming API library" depends= replaces="gcc" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libgomp.so.* "$subpkgdir"/usr/lib/ } libgphobos() { pkgdesc="D programming language standard library for GCC" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgdruntime.so.* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libgphobos.so.* "$subpkgdir"/usr/lib/ } gdc() { pkgdesc="GCC-based D language compiler" depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev" depends="$depends libucontext-dev" mkdir -p "$subpkgdir/$_gcclibexec" \ "$subpkgdir"/$_gcclibdir/include/d/ \ "$subpkgdir"/usr/lib \ "$subpkgdir"/usr/bin # Copy: The installed '.d' files, the static lib, the binary itself # The shared libs are part of 'libgphobos' so one can run program # without installing the compiler mv "$pkgdir/$_gcclibexec/d21" "$subpkgdir/$_gcclibexec/" mv "$pkgdir"/$_gcclibdir/include/d/* "$subpkgdir"/$_gcclibdir/include/d/ mv "$pkgdir"/usr/lib/libgdruntime.a "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libgphobos.a "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libgphobos.spec "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/bin/$CTARGET-gdc "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/bin/gdc "$subpkgdir"/usr/bin/ } libgo() { pkgdesc="Go runtime library for GCC" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgo.so.* "$subpkgdir"/usr/lib/ } go() { pkgdesc="Go support for GCC" depends="gcc=$_gccrel libgo=$_gccrel !go" mkdir -p "$subpkgdir"/$_gcclibexec \ "$subpkgdir"/usr/lib \ "$subpkgdir"/usr/bin mv "$pkgdir"/usr/lib/go "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/bin/*gccgo "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/bin/*go "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/*gofmt "$subpkgdir"/usr/bin mv "$pkgdir"/$_gcclibexec/go1 "$subpkgdir"/$_gcclibexec/ mv "$pkgdir"/$_gcclibexec/cgo "$subpkgdir"/$_gcclibexec/ mv "$pkgdir"/$_gcclibexec/buildid "$subpkgdir"/$_gcclibexec/ mv "$pkgdir"/$_gcclibexec/test2json "$subpkgdir"/$_gcclibexec/ mv "$pkgdir"/$_gcclibexec/vet "$subpkgdir"/$_gcclibexec/ mv "$pkgdir"/usr/lib/libgo.a \ "$pkgdir"/usr/lib/libgo.so \ "$pkgdir"/usr/lib/libgobegin.a \ "$pkgdir"/usr/lib/libgolibbegin.a \ "$subpkgdir"/usr/lib/ } libgfortran() { pkgdesc="Fortran runtime library for GCC" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgfortran.so.* "$subpkgdir"/usr/lib/ } libquadmath() { replaces="gcc" pkgdesc="128-bit math library for GCC" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libquadmath.so.* "$subpkgdir"/usr/lib/ } gfortran() { pkgdesc="GNU Fortran Compiler" depends="gcc=$_gccrel libgfortran=$_gccrel" $_libquadmath && depends="$depends libquadmath=$_gccrel" replaces="gcc" mkdir -p "$subpkgdir"/$_gcclibexec \ "$subpkgdir"/$_gcclibdir \ "$subpkgdir"/usr/lib \ "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/*gfortran "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/lib/libgfortran.a \ "$pkgdir"/usr/lib/libgfortran.so \ "$subpkgdir"/usr/lib/ if $_libquadmath; then mv "$pkgdir"/usr/lib/libquadmath.a \ "$pkgdir"/usr/lib/libquadmath.so \ "$subpkgdir"/usr/lib/ fi mv "$pkgdir"/$_gcclibdir/finclude "$subpkgdir"/$_gcclibdir/ mv "$pkgdir"/$_gcclibexec/f951 "$subpkgdir"/$_gcclibexec mv "$pkgdir"/usr/lib/libgfortran.spec "$subpkgdir"/$_gcclibdir } libgnat() { pkgdesc="GNU Ada runtime shared libraries" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgna*.so "$subpkgdir"/usr/lib/ } libgnatstatic() { pkgdesc="GNU Ada static libraries" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgna*.a "$subpkgdir"/usr/lib/ } gnat() { pkgdesc="Ada support for GCC" depends="gcc=$_gccrel" provides="$pkgname-gnat-bootstrap" [ "$CHOST" = "$CTARGET" ] && depends="$depends libgnat=$_gccrel" mkdir -p "$subpkgdir"/$_gcclibexec \ "$subpkgdir"/$_gcclibdir \ "$subpkgdir"/usr/bin mv "$pkgdir"/$_gcclibexec/*gnat* "$subpkgdir"/$_gcclibexec/ mv "$pkgdir"/$_gcclibdir/*ada* "$subpkgdir"/$_gcclibdir/ mv "$pkgdir"/usr/bin/*gnat* "$subpkgdir"/usr/bin/ } sha512sums="b21f14f8316d1ed1cfb0251789af7d14091f211d94e46cedaaab645c5cbe43553757b2e1951375827e37278970d2d6cdc0707dbb485f59c581b9b6c38223b437 gcc-10.2.1_pre2.tar.xz 4aef7bda014e5e27025adb75acbbe1c8cde021655ba52fa4ffbb193878c5097771e775d2c0aeb33802858ba66e7cd16d1b12b10c20dcc5ab0a77f68bcd280995 0001-posix_memalign.patch 1cf2893927b4d92c173f639742f187882d45fa9f27b3e3131e587918bb37774670833ed284960bcf1ecc92f0ebedd9f180bbf8c86da1d32b5469e8e874252f27 0002-gcc-poison-system-directories.patch f065f77c21bb86e4607ba311f227aeda46a59cb084a2fd6ec1903398f160d56f07e19943ddcf6d5dbf338e2aa66f0043c939479fab721150d6913e0c013ed823 0003-Turn-on-Wl-z-relro-z-now-by-default.patch 4d9b79ac9bf676ca349871ed380793acab76cafae67bb2d09cc5491e90ba3e21a36342e2a2efef775ee983b240675be290109d0d6d06ca3e438247272bb3ef10 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch e4e460a65c4b40d5afb41ea2eddde67928e12e5ca22acab915e3b7456a737f57cb0c245b8947687063c39287aadae0a8f316adb420a129f99581e5577bb349b5 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch 8ed4e529714f778eff84782f8e0899429ab996520d0952922ec2100a8c98a8a693f43738afd0ef45340c4a6e99a115883196f6fd237e75bdc58f6a3221dd87ff 0006-Enable-Wformat-and-Wformat-security-by-default.patch 9a9bc91df1eb66fb40ea66bfcf169ea48adb332fa074f5fb621461879b03c8836d90586aa802a8b23ca4bc105401745361e52e803955464f04f4e21775dcd69d 0007-Enable-Wtrampolines-by-default.patch 727747e378102a8741879ee862c22768bed98f62ca1f9884316f69d439b21f5b30cd25481dedc41aceceac22b653cff04bfa261ae5fdf954892246c9c990b9d9 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch babfd43f96124f8be00c8dadabae2ef7eb81c5f8362134980153eabfbb6864b59246ce7eba4b110d83d1aba28057a2f814772e7fa4c1cebc71182ab25929317e 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch 9bfa36a40302cbdbf4b8186e55a7c6235f54d42d3de34d310c2e1586054fcf4a882cd3a1ea24a5047ba410d8f9e51c91ccf53950ee1eac2a5df1c8bc3684c7a8 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch cecc9a961f99934ed078f4aa32d208e6074f59571f186b52ee99e49b4dbf7fcaa58a492b0a50407b9a6060b2ba72f1297e22556ac5c6308fbb9463e1fe0ef2e4 0011-libiberty-copy-PIC-objects-during-build-process.patch 1b3438a66ff8a1e724b2973937bce8dc99e0294cf9e04d3f631524e8eb8413333a9c5ac8e9d956f5d3155a5065eaee3866ad2f89cf40294434db67bf85e52a52 0012-libitm-disable-FORTIFY.patch 3de9a7da0e86a104fddac12c11ba57eba80e44efbd66d7eb09fa4757973cfc8a7f07b2309893d9de6fae3f912e69923ba231abad9facaa18d0a521177c54977f 0013-libgcc_s.patch d08adebd9d07ba1480e3af0faf30328d3a2621e1827147bbb7ab2a6277482a4844a5434d7ff48c6ad31f461685ba2aaa1504fb4d0fcaf4c4e9b7c580cfdbfb41 0014-nopie.patch 7ef7d5c77af6ad43b43111d3a989f18945f5097b8714516175a8f237515de63f0883ff788e411ab0925fbdae3aad40819059e13f60af6f68757382928fb46fde 0015-libffi-use-__linux__-instead-of-__gnu_linux__-for-mu.patch aab2cefd3abebef3e3cafd2fc53b7d4519d2e926563528484d41d8717a7b9ebf95d6e314b072bc890e40f8e03d02e1b578200122e0797219d65f9864b396c2c0 0016-dlang-update-zlib-binding.patch d6831aa5f4d61fa83bbdda08b4373f8624e8c1a21fb38864e1753e766027777d422ae7131e78f9d0edb4f00062207b6c79ace61526202588fd5e82575b74c23f 0017-dlang-fix-fcntl-on-mips-add-libucontext-dep.patch 8a668bb00185418d5b9d6cce048491195c1ccf437f344cec451ab0dbfe3d66040ac481666a26eb90e2b57d2c2adce5a7d270636e93f6387cb8779faafb470a6e 0018-ada-fix-shared-linking.patch 299dad2985f374472ccb1c49ba6c82fb16bc2a5c0c8ce370a22c26ffd80bfec8b8261eda58dd1b24db40f476c0a9219c904002b5665ce481668ca48cb7099282 0019-build-fix-CXXFLAGS_FOR_BUILD-passing.patch 54ef15a29cea01d28cf2d44bf6ac249ebe4b62022e06098322774693c900facecfdd65fd01eb9292df5258149ffa7d7f52c4d65674fdaf180cb51f9b2f9ab922 0020-add-fortify-headers-paths.patch 7786627a00b5ee0c3e215b67bf786226f1a1d628da15ce5a227f90721ee05e3a10b5ac99a544142094f9d7f571fd0ab4f6c0ecdefbfbaf69a8dd276b3e2d4ec6 0021-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch 9d8be16867097c0088d0e98fa0354de00879fbf6261ba4c793c82742d659456b39aab1492b4ea94bc5c95523b11d86fe8db3c8bf54f8173935a77a178f8375bc 0022-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch 4e6efe5d622d47b4881146ae92f09661b005d3f06125ea5c2c4c18e863a87f05c57679b537fd9aaabd9e7bfddeb00c2027f9d7267d29d9efbd78fb88bcfe01b6 0023-Pure-64-bit-MIPS.patch 4dfc19c5e98a1290c6575cae1c18290b09552fe8d77940745ad0da222ae0e991bfd085c945d73b4124db04cc4699f15791cee70fa32aff11c661b6ac7dad097f 0024-use-pure-64-bit-configuration-where-appropriate.patch 0aea39678c9e3a9ef42cbc927da1331d2110fa7a1ad72fbb1c21cbcf12d08a1376e9ddd04a18404ce126168e14dbc852be2cafed74d1009068a057531023d6cd 0025-always-build-libgcc_eh.a.patch ecd4a2f70e58daa557434e5e799abb9d78bccfce9774cf4ebbae87ffa5c81201251f263ee3412a642617525e4d09b3019f906a2510d2264a92fa4472fd8e116f 0026-ada-libgnarl-compatibility-for-musl.patch 6fba73026a253d7244dec6a2f04165306b779181014ebfe9d991822c95c02c40b8e109dae9e3c60632eb4afa569d4c267840e179d68e02f89121c30d96b54c35 0027-ada-musl-support-fixes.patch 2a842fb2da1e18571fc423eea3a347cc356fed7d066bbfc7312be47d650a0b26448590ecc5aa6ad8220e5b8df038948d1975560411e97ada123138f3f920a462 0028-gcc-go-Use-_off_t-type-instead-of-_loff_t.patch f8b56f9efcde3783ed7aadf084beb8c2121411d844e37070e494d43913a41e6821af589c97085e5f3fb0c4dba920b980d09f17b3072392100aab5106e4268e4f 0029-gcc-go-Don-t-include-sys-user.h.patch 01695bf4dd42fd1ac5a76b1e69f6210b0df99270896cdce2e40008b1a5c2eb6954ee70669af5b5fc3bbca3f0813e30598fd36691138cfc8cd66f95deca1b6a4e 0030-gcc-go-Fix-ucontext_t-on-PPC64.patch 98be59b675641d186d342cc5c7ccc2c678b1194b69c9afae5947722fe33ba429b1ff2a8152af280ad60d159c59a0d788482f96c8b3a1a7779ae51728569f9c21 0031-gcc-go-Fix-handling-of-signal-34-on-musl.patch 4bc4f6e6fb9ade805605746426da12c454f8903e708f8c43e734af45944383a20e4ab0ded4e1b58f8b2077f72c2c79cb24e0cdb0d2a5180b2374b963ad66355a 0032-gcc-go-Use-int64-type-as-offset-argument-for-mmap.patch 92bf463a0e3b8a1f29cb65ad2bf9bedd419de6967d24c474fc40577d2af02f1778550ce3614b3debf4f947aace600e0dadbbfa499b4fddf83c5b927a01805bf9 0033-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch 24d59cb368b0b178dc13f3c89c9a0aa50ab3538d1ded56012bd9a3eeabea28c349cb9a4aa0474d04679c855079ad423bbb7bfc7735e5f7e08ad49d85ca1e0671 0034-gcc-go-signal-34-is-special-on-musl-libc.patch 54fffe6dad16551b5e5bd942f54bbfd39ac4ee3d42b29078f731beaacdc1479c200c9dba432ac43cc851e1f3a56b55dcc41c4517ebbf26d44bd8534f16555e1d 0035-gcc-go-Prefer-_off_t-over-_off64_t.patch 2951f905aef9caf88e1245edfcb38a3d6185535989fc2ba5246bd9beb90d6881baa318f1a788002e8d8294925305bb435135c88a8a89d715a621c28420790f32 0036-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.patch 2deb6111f3140f68a2aef63657e221781f4b9381fedc57cc967ea593d21121c8a14cf2c7460d27decfda8904698b7de866bf8eb733155d74c2bcd139638a68dd 0037-gcc-go-link-to-libucontext.patch f8281d2be085e1c9047baf0bf4a072451ebe29338d53322e847d33c6a883249bcc240d62d47572534333ad9ab507d80404a3c8d05d8036216d647138e4f88568 0038-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch 67589a4a4f987a702b2317823329a803007bb1d5d3f319c33ece9aa03dc8b27803122cc8fa17f0ccc1dfa3e5beb15ba8e6ab635b8f6224b65bf483f6956d6c8b 0039-CRuntime_Musl-Support-v1.2.0-for-32-bits.patch 00fd11053ebfacc38c2bc95adc23bd01930373fc8ac8511976d4033950194cdd0ae17d87021ec8b3ab39afb9c5ed32dd71822bc525740c04301ae20c2e905a90 0040-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch"