aboutsummaryrefslogtreecommitdiffstats
path: root/community/gcc-avr/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gcc-avr/APKBUILD')
-rw-r--r--community/gcc-avr/APKBUILD35
1 files changed, 17 insertions, 18 deletions
diff --git a/community/gcc-avr/APKBUILD b/community/gcc-avr/APKBUILD
index 447119e108..6e89a3b6bf 100644
--- a/community/gcc-avr/APKBUILD
+++ b/community/gcc-avr/APKBUILD
@@ -2,18 +2,19 @@
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=gcc-avr
-pkgver=9.2.0
+pkgver=10.2.0
pkgrel=0
pkgdesc="The GNU Compiler Collection for AVR targets"
url="https://gcc.gnu.org/"
depends="binutils-avr"
-makedepends="bash linux-headers gmp-dev mpfr-dev mpc1-dev zlib-dev"
+makedepends="bash linux-headers gmp-dev mpfr-dev mpc1-dev zlib-dev isl-dev"
arch="all"
-license="GPL LGPL"
+license="GPL-3.0-or-later"
subpackages="$pkgname-doc"
-_islver=0.18
-source="https://mirrors.kernel.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz
- http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2"
+source="
+ https://mirrors.kernel.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz
+ fix-no-system-headers.patch
+ "
builddir="$srcdir/gcc-$pkgver"
_workingdir="$builddir/build"
@@ -22,18 +23,18 @@ build() {
mkdir "$_workingdir"
cd "$_workingdir"
- # link isl for in-tree build
- ln -s "$srcdir"/isl-"$_islver" "$builddir"/isl
-
export CFLAGS_FOR_TARGET='-pipe'
export CXXFLAGS_FOR_TARGET='-pipe'
"$builddir"/configure \
- --build="$CBUILD" \
--target=avr \
--prefix=/usr \
+ --with-sysroot=/usr/avr \
+ --with-native-system-header-dir=/include \
+ --with-headers=/usr/avr/include \
+ --with-python-dir=share/gcc-avr \
+ --libexecdir=/usr/lib \
--enable-languages=c,c++ \
- --enable-ld=default \
--enable-__cxa_atexit \
--disable-install-libiberty \
--disable-libssp \
@@ -42,14 +43,12 @@ build() {
--disable-linker-build-id \
--disable-nls \
--disable-werror \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib \
- --with-as=/usr/bin/avr-as \
--with-gnu-as \
--with-gnu-ld \
- --with-ld=/usr/bin/avr-ld \
--with-system-zlib \
- --with-isl
+ --with-isl \
+ --with-avrlibc \
+ --with-pkgversion='Alpine Linux'
make
}
@@ -61,5 +60,5 @@ package() {
find "$pkgdir"/usr/lib -type f -name "*.a" -exec /usr/bin/avr-strip --strip-debug '{}' \;
}
-sha512sums="a12dff52af876aee0fd89a8d09cdc455f35ec46845e154023202392adc164848faf8ee881b59b681b696e27c69fd143a214014db4214db62f9891a1c8365c040 gcc-9.2.0.tar.xz
-85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94 isl-0.18.tar.bz2"
+sha512sums="42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e gcc-10.2.0.tar.xz
+358cb41e6a8612f5c96f27ed573354a909253565caa200af8959d90cf21e0ddbee219f6281fc3917ead1f85c5ec7111162f9b075c3e478df56a2fad505bce5f1 fix-no-system-headers.patch"