Magellan Linux

Diff of /smage/trunk/core/gcc/gcc-4.3.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 306 by niro, Tue Apr 27 23:36:34 2010 UTC revision 376 by niro, Tue May 4 16:49:11 2010 UTC
# Line 24  SDEPEND=">= virtual/kernel-headers Line 24  SDEPEND=">= virtual/kernel-headers
24   >= dev-libs/mpfr-2.3.2   >= dev-libs/mpfr-2.3.2
25   >= sys-apps/diffutils-2"   >= sys-apps/diffutils-2"
26    
27  SPLIT_PACKAGES="gcc libstdc++"  SPLIT_PACKAGES="gcc libstdc++ libstdc++-dev"
28    
29  SRCFILE="${PNAME}-${PVER}.tar.bz2"  SRCFILE="${PNAME}-${PVER}.tar.bz2"
30  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
# Line 194  src_install_libstdc++() Line 194  src_install_libstdc++()
194  {  {
195   cd ${SRCDIR}/build   cd ${SRCDIR}/build
196   minstalldir /$(mlibdir) || die   minstalldir /$(mlibdir) || die
197    
198     local target
199     for target in libstdc++-v3 libgcc libssp
200     do
201     make DESTDIR=${BINDIR} install-target-${target} || die
202     done
203    
204     # cleanup, only keep the libs, everything else get provided by the gcc-package
205     zapmost ${BINDIR}/usr/$(mlibdir) libgcc_s*.* libstdc++*.* libssp*.* || die
206     # multilib as well
207     if [[ $(mlibdir) != lib ]] && [[ -d ${BINDIR}/usr/lib ]]
208     then
209     zapmost ${BINDIR}/usr/lib libgcc_s*.* libstdc++*.* libssp*.* || die
210     fi
211    
212     # clean up everything else
213     zapmost ${BINDIR} usr/$(mlibdir) $([[ $(mlibdir) != lib ]] && echo "usr/lib") || die
214    
215     # fix all .la files
216     # they may contain invalid libpathes which are not needed
217     local la
218     for la in $(find ${BINDIR} -name \*.la)
219     do
220     fix_la_file ${la} || die ${la}
221     done
222    }
223    
224    src_install_libstdc++-dev()
225    {
226     cd ${SRCDIR}/build
227     minstalldir /$(mlibdir) || die
228    
229   local target   local target
230   for target in libstdc++-v3 libgcc libssp   for target in libstdc++-v3 libgcc libssp

Legend:
Removed from v.306  
changed lines
  Added in v.376