e61766190d
[ci skip]
68 lines
1.8 KiB
Bash
68 lines
1.8 KiB
Bash
# Template file for 'cross-${_triplet}-${_pkgname}'
|
|
_triplet=arm-none-eabi
|
|
_pkgname=gcc
|
|
pkgname=cross-${_triplet}-${_pkgname}
|
|
version=9.1.0
|
|
revision=1
|
|
wrksrc="${_pkgname}-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--disable-decimal-float
|
|
--disable-libffi
|
|
--disable-libgomp
|
|
--disable-libmudflap
|
|
--disable-libquadmath
|
|
--disable-libssp
|
|
--disable-libstdcxx-pch
|
|
--disable-nls
|
|
--disable-shared
|
|
--disable-threads
|
|
--disable-tls
|
|
--disable-werror
|
|
--enable-__cxa_atexit
|
|
--enable-c99
|
|
--enable-gnu-indirect-function
|
|
--enable-interwork
|
|
--enable-languages=c,c++
|
|
--enable-long-long
|
|
--enable-multilib
|
|
--enable-plugins
|
|
--host=${XBPS_CROSS_TRIPLET}
|
|
--libdir=/usr/lib
|
|
--libexecdir=/usr/lib
|
|
--prefix=/usr
|
|
--target=${_triplet}
|
|
--with-gmp
|
|
--with-gnu-as
|
|
--with-gnu-ld
|
|
--with-headers=/usr/${_triplet}/include
|
|
--with-host-libstdcxx='-static-libgcc'
|
|
--with-isl
|
|
--with-libelf
|
|
--with-mpc
|
|
--with-mpfr
|
|
--with-multilib-list=rmprofile
|
|
--with-native-system-header-dir=/include
|
|
--with-newlib
|
|
--with-python-dir=share/${_pkgname}-${_triplet}
|
|
--with-sysroot=/usr/${_triplet}
|
|
--with-system-zlib
|
|
"
|
|
make_build_target="all-gcc"
|
|
make_install_target="install-gcc"
|
|
hostmakedepends="autoconf automake cross-arm-none-eabi-binutils bison flex perl"
|
|
makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel"
|
|
depends="cross-arm-none-eabi-binutils"
|
|
short_desc="GNU Compiler Collection"
|
|
maintainer="Ivan Sokolov <ivan-p-sokolov@ya.ru>"
|
|
license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://gcc.gnu.org"
|
|
distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}/${_pkgname}-${version}.tar.xz"
|
|
checksum=79a66834e96a6050d8fe78db2c3b32fb285b230b855d0a66288235bc04b327a0
|
|
alternatives="arm-none-eabi:/usr/bin/arm-none-eabi-cc:/usr/bin/arm-none-eabi-gcc"
|
|
nocross=yes
|
|
nopie=yes
|
|
|
|
post_install() {
|
|
rm -fr ${DESTDIR}/usr/share/{info,man/man7}
|
|
}
|