wok rev 12838

gcc-lib-base: we need it in ARM
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 23 01:32:05 2012 +0200 (2012-05-23)
parents 05a0ed0c2af0
children 849bede23853
files gcc-lib-base/description.txt gcc-lib-base/receipt
line diff
     1.1 --- a/gcc-lib-base/description.txt	Tue May 22 19:25:39 2012 +0200
     1.2 +++ b/gcc-lib-base/description.txt	Wed May 23 01:32:05 2012 +0200
     1.3 @@ -1,3 +1,3 @@
     1.4 -The GNU Compiler Collection includes front ends for C, C++, Objective-C, 
     1.5 -Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++,
     1.6 -libgcj,...). 
     1.7 +The GNU Compiler Collection includes front ends for C, C++, Objective-C,
     1.8 +Fortran, Java, Ada, and Go, as well as libraries for these languages
     1.9 +(libstdc++, libgcj,...).
     2.1 --- a/gcc-lib-base/receipt	Tue May 22 19:25:39 2012 +0200
     2.2 +++ b/gcc-lib-base/receipt	Wed May 23 01:32:05 2012 +0200
     2.3 @@ -7,13 +7,23 @@
     2.4  WEB_SITE="http://gcc.gnu.org/"
     2.5  MAINTAINER="pankso@slitaz.org"
     2.6  WANTED="gcc"
     2.7 +HOST_ARCH="i486 arm"
     2.8 +
     2.9 +# Handle multiarch compilation.
    2.10 +case "$ARCH" in
    2.11 +	arm) WANTED="" ;;
    2.12 +esac
    2.13  
    2.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.15  genpkg_rules()
    2.16  {
    2.17  	mkdir -p $fs/usr/lib
    2.18 -	cp -a $install/usr/lib/libgcc_s.so* $fs/usr/lib
    2.19 -	cp -a $install/usr/lib/libstdc++.so* $fs/usr/lib
    2.20 -	rm $fs/usr/lib/*-gdb.py
    2.21 +	case "$ARCH" in
    2.22 +		arm) libdir=/usr/cross/$ARCH/lib ;;
    2.23 +		i?86) libdir=$install/usr/lib ;;
    2.24 +	esac
    2.25 +	cp -a $libdir/libgcc_s.so* $fs/usr/lib
    2.26 +	cp -a $libdir/libstdc++.so* $fs/usr/lib
    2.27 +	rm -f $fs/usr/lib/*-gdb.py
    2.28  }
    2.29