wok-current diff gcc-lib-base/receipt @ 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 | 0893b8771990 |
children | 2d5870f28729 |
line diff
1.1 --- a/gcc-lib-base/receipt Thu Apr 26 03:16:03 2012 +0200 1.2 +++ b/gcc-lib-base/receipt Wed May 23 01:32:05 2012 +0200 1.3 @@ -7,13 +7,23 @@ 1.4 WEB_SITE="http://gcc.gnu.org/" 1.5 MAINTAINER="pankso@slitaz.org" 1.6 WANTED="gcc" 1.7 +HOST_ARCH="i486 arm" 1.8 + 1.9 +# Handle multiarch compilation. 1.10 +case "$ARCH" in 1.11 + arm) WANTED="" ;; 1.12 +esac 1.13 1.14 # Rules to gen a SliTaz package suitable for Tazpkg. 1.15 genpkg_rules() 1.16 { 1.17 mkdir -p $fs/usr/lib 1.18 - cp -a $install/usr/lib/libgcc_s.so* $fs/usr/lib 1.19 - cp -a $install/usr/lib/libstdc++.so* $fs/usr/lib 1.20 - rm $fs/usr/lib/*-gdb.py 1.21 + case "$ARCH" in 1.22 + arm) libdir=/usr/cross/$ARCH/lib ;; 1.23 + i?86) libdir=$install/usr/lib ;; 1.24 + esac 1.25 + cp -a $libdir/libgcc_s.so* $fs/usr/lib 1.26 + cp -a $libdir/libstdc++.so* $fs/usr/lib 1.27 + rm -f $fs/usr/lib/*-gdb.py 1.28 } 1.29