core/gcc to 12.1.0-2

This commit is contained in:
Kevin Mihelich 2022-05-17 00:09:05 +00:00
parent 399f3c986a
commit 4818ba83d7

View file

@ -19,7 +19,7 @@ noautobuild=1
pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-go libgccjit)
pkgver=12.1.0
_majorver=${pkgver%%.*}
pkgrel=1
pkgrel=2
pkgdesc='The GNU Compiler Collection'
arch=(x86_64)
license=(GPL3 LGPL FDL custom)
@ -86,31 +86,33 @@ prepare() {
}
build() {
local _confflags="--prefix=/usr \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues \
--with-linker-hash-style=gnu \
--with-system-zlib \
--enable-__cxa_atexit \
--enable-checking=release \
--enable-clocale=gnu \
--enable-default-pie \
--enable-default-ssp \
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
--enable-linker-build-id \
--enable-lto \
--enable-plugin \
--enable-shared \
--enable-threads=posix \
--disable-libssp \
--disable-libstdcxx-pch \
--disable-multilib \
--disable-werror \
$CONFIGFLAG"
local _confflags=(
--prefix=/usr
--libdir=/usr/lib
--libexecdir=/usr/lib
--mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues
--with-linker-hash-style=gnu
--with-system-zlib
--enable-__cxa_atexit
--enable-checking=release
--enable-clocale=gnu
--enable-default-pie
--enable-default-ssp
--enable-gnu-indirect-function
--enable-gnu-unique-object
--enable-linker-build-id
--enable-lto
--enable-plugin
--enable-shared
--enable-threads=posix
--disable-libssp
--disable-libstdcxx-pch
--disable-multilib
--disable-werror
$CONFIGFLAG
)
cd gcc-build
@ -123,7 +125,7 @@ build() {
"$srcdir/gcc/configure" \
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++ \
--enable-bootstrap \
$_confflags
"${_confflags[@]:?_confflags unset}"
# see https://bugs.archlinux.org/task/71777 for rationale re *FLAGS handling
make -O STAGE1_CFLAGS="-O2" \
@ -143,7 +145,7 @@ build() {
--enable-languages=jit \
--disable-bootstrap \
--enable-host-shared \
$_confflags
"${_confflags[@]:?_confflags unset}"
# see https://bugs.archlinux.org/task/71777 for rationale re *FLAGS handling
make -O STAGE1_CFLAGS="-O2" \