# Automatically generated aport, do not edit! # Generator: pmbootstrap aportgen gcc-armhf # Based on: main/gcc (from Alpine) CTARGET_ARCH=armhf 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-armhf _pkgbase=10.2.1 pkgver=10.2.1_git20210328 [ "$BOOTSTRAP" = "nolibc" ] && pkgname="gcc-pass2" [ "$CBUILD" != "$CHOST" ] && _cross="-$CARCH" || _cross="" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armhf pkgrel=0 pkgdesc="Stage2 cross-compiler for armhf" 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-armhf 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-armhf binutils-armhf" subpackages="g++-armhf: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="44d785af0f7aa321487f23b7656877e8112ca2e0b93df538508031d6541db6f7e92ddefb40e44870f4f86adc8dd0efbca3b1748539d62c46f18ac667e134c7f6 gcc-10.2.1_git20210328.tar.xz 3b26000b0ffb3467d8d1b37782a4ba03564813ca33a2842ec2f86213e4ad8f0eba4dd55c43fe965fb90ab21bfecb7c8abd174b5faf09aad128ee25bfd1f48578 0001-posix_memalign.patch 9b6e01b6c61c6d30a5965a16f9057495b6e73387085ecff3db87ad4153305fdcec132ade9f13229539cf35c29e0ceaac38a0eeb9f9598e1a30a4f67a2352c0b6 0002-gcc-poison-system-directories.patch eee255b920cfe35cb1df1c62a44f17c81479573308df87c12c0971a1dca82dd1c73a0544cc6ab9974cd75d212e19450fc855eaf794843f0d5541e9ba7985af2f 0003-Turn-on-Wl-z-relro-z-now-by-default.patch b1967302576ede18efbfd7de6c191b7503bc43f205a6c22787823d1bd66f03d197bb2f0e674594707a9958932605b4b524568b2383fa62117bd5d80ecacce29c 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch 45c21abd2153541959352ed75ec322038c0950351c164d5540b61070fcaf158feee3ee82fd6dd9aea03d846edb99f487f76a312d442d70de16371c783fe3704b 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch 16a7b2a1e5c2191694131f2eee06adf3e45d59de83e1b5fa1dff43210b9a7f13234cf27a95d9a1d799bcd944aa2af8dc33396d518b574b8773ad52ebc6e80edc 0006-Enable-Wformat-and-Wformat-security-by-default.patch daef4ebe907027b9ed2a4d940bb729355c86146dedd963f19b6f3e293e9e9807312c457a76c8599cc759283e7c35b85b721a60cabfc3026538efcbce212e10ea 0007-Enable-Wtrampolines-by-default.patch f67ca64ef00350404a4db016e605a255e1669c9d05c86061816905348ddc9ffe260ae8d05d0fd1b9c9c2268b2943b2507a95e63ced39a4c5dfb791964f6f4a16 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch a7867b548b54ac81eedfda56679ee6658e690bb47528f9c437538c09bfeb5c8f0051788d61b480ddef3b3d16c4b2c35669741d5f99b2e68a89c7aec6280bc65f 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch 3d21fae6c58aabf7f05caabcc54635650e178d87d3816cfd367f14dfcfb0fa971526ce06d0c5f84557ce66220c2859b66897ede76c7e5d59cb72789b3b4edcae 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch da4005b10d0222ebddc44dc9334933d80064583dc9f4e949ceef5b9739556d01ed91513a1a26758bf1211fd7a941d4e0d7cd1093b2f03cd00950981b8be87c1a 0011-libiberty-copy-PIC-objects-during-build-process.patch f9acc3d4691525b6f64344485b9566a5e916572159c2b779f79324c56d6a3d9acb9c8dd79c0cf4d067737ca9c966aa1ba6b22c0eb6a4aadf91c54a3455a2bcd9 0012-libitm-disable-FORTIFY.patch 78fa151c0121455d52b7499b1e94761c4bb1150acaa751275df8e26ee27be785c78e2f7c7ec6fd3fda8cba431f2c151c79d61f9c00d51f55b2ae0ea588f3880c 0013-libgcc_s.patch 01afd5aab0f73ad2ee59459520d0fd93e772e954907e453ffc853e2b03f0c963f04abaea4479b202f79fa5c535b3a5b95f3ecde727ddfefb2c3e02e269ab39cc 0014-nopie.patch 1da8e1e5124e480b29b35c0401298d4c9a15b871e7bfede525df33e0ebaf56dc63d0854c28876d3ea77438353641c9ff5d4050698bca9fb91765ab92f9208359 0015-libffi-use-__linux__-instead-of-__gnu_linux__-for-mu.patch 79853461889abccf810f70c8b6de5bb8a201681957dfeb1e7f0bc6acc3e939958f3e4012ff76ff01f7004398170566f100e49fa2ad3187dde4cdee60ac28a00d 0016-dlang-update-zlib-binding.patch bbd954ac46d52d1fa8dcc731714424e026189d93eb6da6e632da997b3555b22dcff341626975d7acb795b655355ca493ebcffb925ba8b95e6dc3682a1c1e3fcf 0017-dlang-fix-fcntl-on-mips-add-libucontext-dep.patch e6cd2ff6c03cad621bfd8b6c50bd7f9280a8a944096d0994cb11a7689c40cecffb2efc813db39e040c064ed1a8fa8bbd60ff51ab3bb69485faa216f4d9bab17d 0018-ada-fix-shared-linking.patch a16631492e020f54fe19dc41ab831df881c96903d7ae9beaf9cfaed8c3bb65fdabea2ed0fc0945736a21432032623acb4403e9dc96d6020bd08b3836669719be 0019-build-fix-CXXFLAGS_FOR_BUILD-passing.patch 1313e45ea2a9f8118d86a68e0942afc85840bbcc0154683f19660a09b7d51448f87ceb2e04fa9e70d84b7494467855f3062bb6be896cfbccb4ffb33dc3f836dd 0020-add-fortify-headers-paths.patch a7f159ee2719cf16df666c58cac7266c6d14531076c719e3723f74b022c30338b7a53b0580aa373bcef8ccf607e7e54d4fb8d4da92da9ed82046797d8d4530e0 0021-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b2d84e116538be203b10b795eb2ec11cd5aac3dc4b6d9216118b61de417929c68f3f961ae9c6edbb86a4f74305dabc26619aac1fe1ad289b274e4c546eeeb2dc 0022-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch 72bb76b5e039c341c01d23dd503faaf290efd7389c748696ef058f9534d96bbfea8e56c52be4737a4ef7ab6bef8806c729d35175f5f55fddced42b3317ab223d 0023-Pure-64-bit-MIPS.patch 775fd10e51e80f22b21158c64cab69fbf7783dba784904a364614f319dca9c227d219714ddf4bb8c84d5e226322ce46739313f85e8b564df73f6ee91d54cfd82 0024-use-pure-64-bit-configuration-where-appropriate.patch 1fb0f5b812045f485051b16f5e7f4cf9785471a1c6069f88086edd41c65db4eb35681cc52916ef36586224ce7f5a66fc4e548076525afe6a6b56e21668fa5c81 0025-always-build-libgcc_eh.a.patch 84eb567250c6cc3c4dc00fb5a0de32648eb81b8bc50fb5b0fdcc7208118c887c7274677aafdc8e2400be4d44346ddaccc0b2a3eb99b000f06cc446e90e6c760d 0026-ada-libgnarl-compatibility-for-musl.patch d6ea8bba98cca5cb9ef952c344f063d126dab7f7d30fbf411334be29e9aae611af85e137c92c16e6e72410fe7fed26d984d8807f0469770cae85f98f7b4d8eac 0027-ada-musl-support-fixes.patch 551da64e652effcb3b8bab8f4fee27d83665505ebe4207f891fd0149a04d601bd0ca60b232e58dc2190a7b9469e47a628e4b0b9986a260535aa3416e662c2fcc 0028-gcc-go-Use-_off_t-type-instead-of-_loff_t.patch 156c9f987f9579a05509dcdf0575559692be337a1412b4eb0a5eb3a0662ecf8ea2feed8a581741ff637b8dcb186769f54ae2e1b0e4dcace8ac7bb9eb9dd4e918 0029-gcc-go-Don-t-include-sys-user.h.patch 835be5d6477613def7866d2c9392d3327fe09564890d955db7dd0e77c6aacc234f4a8881b1fb15abae20b0b490fd6cebc5211562629166dc546b33b4f3207a24 0030-gcc-go-Fix-ucontext_t-on-PPC64.patch e0f2b85c4ef4bc83a450e48badc879f67b582d08d9bebad0f466393c9bda9e1898da2af30f90019d65e42bcdbd9fd30540dc3f307bb564470e9b8cae1a8a1e57 0031-gcc-go-Fix-handling-of-signal-34-on-musl.patch 0e6b051452f5f70a279eb323700b933cc856a7a7ec402f822af9cb3d57327fca9ebdeb253e6d87b76098bfd7da9a29591a051f57756ce5a2111da64886b066b4 0032-gcc-go-Use-int64-type-as-offset-argument-for-mmap.patch 5df836874e41ce132a385f8b407f53feaa7854c7e3ecd5bbebc73622d9f0dfdd5000fa1f1545c4c4126d1d83e5d78d203180aec1f09d05369776c5b70f7ffddc 0033-gcc-go-Fix-st_-a-m-c-tim-fields-in-generated-sysinfo.patch a49b175ac231ae683bfbd8e422ac61e55f8ed265ec6bfa5b5a32800ba0605fde48088c12bf5b4ed29c9e202dea93c9443c67c61c2f2eecd709e6aefb3f1ffd32 0034-gcc-go-signal-34-is-special-on-musl-libc.patch 70d8725a3969e7b153db01c84dac5accb911d1b595072eda3bf0e2f24037ebcba478b7c2e80ab105ba3f06b404fd47deb8b509e1f5e652f40bf3b6eafef6f0d0 0035-gcc-go-Prefer-_off_t-over-_off64_t.patch eeb75092443f65e4da76293be1d1a742a0e951c763b5a59ffce056b4a7a84b33dade0e1c96a9887474d16571c797d916c7357ad7fb8004ddbe5195175ca55954 0036-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.patch c6dbba1ae7e11ab0ff58f4c001b5b76c776bf42f17591bc035b42bd7c4e473d837e7daf58e71949889cd1631a88ef5da7058e5d65292090d844077fbb2f6ae02 0037-gcc-go-link-to-libucontext.patch 11e017e82c9e3a8216703972a2d5195eb9153f224d43aeda0aa63519f39212d735b9018ea1c28a214e1eaac31339b5b48273d46a009d82c16a5041d1c0462b2f 0038-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch f83a53fefcadcae65fbda5e7d7f3dc3ee949596056ac1b4fbd3117af469a2ea306cacb4f58c345018c12868f64d63d82b1de63a65fcba21749a0a85c6dcaa95a 0039-CRuntime_Musl-Support-v1.2.0-for-32-bits.patch b19533749ca4048a2956eab18b99fb2e1c5e4cffe9bf4a77d628b0e167af1f9dbb08a747d7888b365789ab9c6e5ce8cd6c09ef171e33f08c136ef6d4b5f05192 0040-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch"