mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
avr-gcc: update to 5.3.0
This commit is contained in:
parent
c9604b0008
commit
b9ce858be4
1 changed files with 10 additions and 9 deletions
|
@ -1,13 +1,13 @@
|
||||||
# Template build file for 'avr-gcc'
|
# Template build file for 'avr-gcc'
|
||||||
pkgname=avr-gcc
|
pkgname=avr-gcc
|
||||||
version=4.9.3
|
version=5.3.0
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="The GNU C Compiler for AVR"
|
short_desc="The GNU C Compiler for AVR"
|
||||||
maintainer="allan <mail@may.mooo.com>"
|
maintainer="allan <mail@may.mooo.com>"
|
||||||
homepage="http://gcc.gnu.org"
|
homepage="http://gcc.gnu.org"
|
||||||
license="GFDL-1.2, GPL-3, LGPL-2.1"
|
license="GFDL-1.2, GPL-3, LGPL-2.1"
|
||||||
distfiles="$GNU_SITE/gcc/gcc-$version/gcc-$version.tar.bz2"
|
distfiles="$GNU_SITE/gcc/gcc-$version/gcc-$version.tar.bz2"
|
||||||
checksum=2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e
|
checksum=b84f5592e9218b73dbae612b5253035a7b34a9a1f7688d2e1bfaaf7267d5c4db
|
||||||
wrksrc="gcc-$version"
|
wrksrc="gcc-$version"
|
||||||
only_for_archs="i686 x86_64"
|
only_for_archs="i686 x86_64"
|
||||||
|
|
||||||
|
@ -19,9 +19,10 @@ do_configure() {
|
||||||
mkdir obj-avr
|
mkdir obj-avr
|
||||||
cd obj-avr
|
cd obj-avr
|
||||||
|
|
||||||
export CFLAGS="-O2 -pipe"
|
CFLAGS="-O2 -pipe" \
|
||||||
|
CONFIG_SHELL=/bin/bash \
|
||||||
CONFIG_SHELL=/bin/bash ../configure \
|
LDFLAGS= \
|
||||||
|
../configure \
|
||||||
--disable-install-libiberty \
|
--disable-install-libiberty \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-libstdcxx-pch \
|
--disable-libstdcxx-pch \
|
||||||
|
@ -32,7 +33,7 @@ do_configure() {
|
||||||
--enable-__cxa_atexit \
|
--enable-__cxa_atexit \
|
||||||
--enable-checking=release \
|
--enable-checking=release \
|
||||||
--enable-clocale=gnu \
|
--enable-clocale=gnu \
|
||||||
--enable-cloog-backend=isl \
|
--enable-gnu-indirect-function \
|
||||||
--enable-gnu-unique-object \
|
--enable-gnu-unique-object \
|
||||||
--enable-gold \
|
--enable-gold \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
|
@ -43,12 +44,11 @@ do_configure() {
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--target=avr \
|
--target=avr \
|
||||||
--with-gnu-as \
|
--with-gnu-as \
|
||||||
--with-as=/usr/bin/avr-as \
|
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
|
--with-as=/usr/bin/avr-as \
|
||||||
--with-ld=/usr/bin/avr-ld \
|
--with-ld=/usr/bin/avr-ld \
|
||||||
--with-plugin-ld=ld.gold \
|
--with-plugin-ld=ld.gold \
|
||||||
--with-system-zlib \
|
--with-system-zlib
|
||||||
--without-included-gettext
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
@ -64,6 +64,7 @@ do_install() {
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -rf "$DESTDIR"/usr/share/man/man7
|
rm -rf "$DESTDIR"/usr/share/man/man7
|
||||||
rm -rf "$DESTDIR"/usr/share/info
|
rm -rf "$DESTDIR"/usr/share/info
|
||||||
|
rm -rf "$DESTDIR"/usr/lib/libcc1.*
|
||||||
find "$DESTDIR"/usr/lib -type f -name "*.a" \
|
find "$DESTDIR"/usr/lib -type f -name "*.a" \
|
||||||
-exec avr-strip --strip-debug {} \;
|
-exec avr-strip --strip-debug {} \;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue