# HG changeset patch # User Christophe Lincoln # Date 1337729525 -7200 # Node ID 78ea2beafc034b6ae2aa49e643dd8ca56f202f3d # Parent 05a0ed0c2af0873b67bb969f5071a7b023317b79 gcc-lib-base: we need it in ARM diff -r 05a0ed0c2af0 -r 78ea2beafc03 gcc-lib-base/description.txt --- a/gcc-lib-base/description.txt Tue May 22 19:25:39 2012 +0200 +++ b/gcc-lib-base/description.txt Wed May 23 01:32:05 2012 +0200 @@ -1,3 +1,3 @@ -The GNU Compiler Collection includes front ends for C, C++, Objective-C, -Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, -libgcj,...). +The GNU Compiler Collection includes front ends for C, C++, Objective-C, +Fortran, Java, Ada, and Go, as well as libraries for these languages +(libstdc++, libgcj,...). diff -r 05a0ed0c2af0 -r 78ea2beafc03 gcc-lib-base/receipt --- a/gcc-lib-base/receipt Tue May 22 19:25:39 2012 +0200 +++ b/gcc-lib-base/receipt Wed May 23 01:32:05 2012 +0200 @@ -7,13 +7,23 @@ WEB_SITE="http://gcc.gnu.org/" MAINTAINER="pankso@slitaz.org" WANTED="gcc" +HOST_ARCH="i486 arm" + +# Handle multiarch compilation. +case "$ARCH" in + arm) WANTED="" ;; +esac # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib - cp -a $install/usr/lib/libgcc_s.so* $fs/usr/lib - cp -a $install/usr/lib/libstdc++.so* $fs/usr/lib - rm $fs/usr/lib/*-gdb.py + case "$ARCH" in + arm) libdir=/usr/cross/$ARCH/lib ;; + i?86) libdir=$install/usr/lib ;; + esac + cp -a $libdir/libgcc_s.so* $fs/usr/lib + cp -a $libdir/libstdc++.so* $fs/usr/lib + rm -f $fs/usr/lib/*-gdb.py }