mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
core/gcc to 12.1.0-2
This commit is contained in:
parent
399f3c986a
commit
4818ba83d7
1 changed files with 30 additions and 28 deletions
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue