summaryrefslogtreecommitdiff
path: root/cross/xtensa-unknown-elf-gcc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'cross/xtensa-unknown-elf-gcc/PKGBUILD')
-rw-r--r--cross/xtensa-unknown-elf-gcc/PKGBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/cross/xtensa-unknown-elf-gcc/PKGBUILD b/cross/xtensa-unknown-elf-gcc/PKGBUILD
index 50d125e8a..2d7364143 100644
--- a/cross/xtensa-unknown-elf-gcc/PKGBUILD
+++ b/cross/xtensa-unknown-elf-gcc/PKGBUILD
@@ -1,7 +1,8 @@
# $Id: PKGBUILD 186915 2013-05-31 23:25:14Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
-# Contributor (Parabola): Márcio Silva <coadde@lavabit.com>
+# Maintainer (Parabola): Márcio Silva <coadde@parabola.nu>
+# Contributor (Parabola): Taro <taro-k@movasense.com>
_pkgname=gcc
_target="xtensa-unknown-elf"
@@ -9,12 +10,12 @@ _sysroot="/usr/$CHOST/${_target}"
pkgname=${_target}-${_pkgname}
pkgver=4.8.1
-pkgrel=1.3
+pkgrel=1.5
pkgdesc="The GNU Compiler Collection for the Xtensa architecture"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'LGPL' 'FDL' 'custom')
url="http://gcc.gnu.org"
-makedepends=("${_target}-binutils>=2.23" 'libmpc' 'cloog' 'gcc-ada' 'doxygen')
+makedepends=("binutils>=2.23" 'libmpc' 'cloog' 'gcc-ada' 'doxygen')
checkdepends=('dejagnu' 'inetutils')
options=('!libtool' '!emptydirs')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
@@ -78,6 +79,8 @@ build() {
package() {
pkgdesc="The GNU Compiler Collection for the Xtensa architecture"
depends=("${_target}-binutils>=2.23" 'libmpc' 'cloog')
+ conflicts=gcc
+ provides="gcc=4.8.2"
groups=("${_target}-devel")
install=${_target}-gcc.install
@@ -85,8 +88,16 @@ package() {
make -j1 DESTDIR=${pkgdir} install-gcc
- # many packages expect this symlinks
- ln -s ${_target}-gcc ${pkgdir}/usr/bin/${_target}-cc
+ # many packages expect those symlinks
+ ln -s ${_target}-gcc ${pkgdir}/usr/bin/${_target}-cc
+ ln -s ${_target}-gcc ${pkgdir}/usr/bin/cc
+ ln -s ${_target}-cpp ${pkgdir}/usr/bin/cpp
+ ln -s ${_target}-gcc ${pkgdir}/usr/bin/gcc
+ ln -s ${_target}-gcc-4.8.1 ${pkgdir}/usr/bin/gcc-4.8.1
+ ln -s ${_target}-gcc-ar ${pkgdir}/usr/bin/gcc-ar
+ ln -s ${_target}-gcc-nm ${pkgdir}/usr/bin/gcc-nm
+ ln -s ${_target}-gcc-ranlib ${pkgdir}/usr/bin/gcc-ranlib
+ ln -s ${_target}-gcov ${pkgdir}/usr/bin/gcov
# Remove unnecessary files and folders
rm $pkgdir/usr/share/info/* && rmdir $pkgdir/usr/share/info