/[gentoo-x86]/sys-devel/gcc/gcc-3.2.2.ebuild
Gentoo

Diff of /sys-devel/gcc/gcc-3.2.2.ebuild

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

Revision 1.12 Revision 1.13
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/Attic/gcc-3.2.2.ebuild,v 1.12 2003/03/09 03:23:08 azarah Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/Attic/gcc-3.2.2.ebuild,v 1.13 2003/03/24 19:49:06 azarah Exp $
4 4
5IUSE="static nls bootstrap java build" 5IUSE="static nls bootstrap java build"
6 6
7inherit eutils flag-o-matic libtool 7inherit eutils flag-o-matic libtool
8 8
285 285
286 # Setup -j in MAKEOPTS 286 # Setup -j in MAKEOPTS
287 get_number_of_jobs 287 get_number_of_jobs
288 288
289 einfo "Building GCC..." 289 einfo "Building GCC..."
290 if [ -z "`use static`" ] 290 # Only build it static if we are just building the C frontend, else
291 # a lot of things break because there are not libstdc++.so ....
292 if [ -n "`use static`" -a "${gcc_lang}" = "c" ]
291 then 293 then
292 # Fix for our libtool-portage.patch 294 # Fix for our libtool-portage.patch
293 S="${WORKDIR}/build" \ 295 S="${WORKDIR}/build" \
294 emake bootstrap-lean \ 296 emake LDFLAGS="-static" bootstrap \
295 LIBPATH="${LIBPATH}" \ 297 LIBPATH="${LIBPATH}" \
296 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die 298 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
297 # Above FLAGS optimize and speedup build, thanks 299 # Above FLAGS optimize and speedup build, thanks
298 # to Jeff Garzik <jgarzik@mandrakesoft.com> 300 # to Jeff Garzik <jgarzik@mandrakesoft.com>
299 else 301 else
302 # Fix for our libtool-portage.patch
300 S="${WORKDIR}/build" \ 303 S="${WORKDIR}/build" \
301 emake LDFLAGS=-static bootstrap \ 304 emake bootstrap-lean \
302 LIBPATH="${LIBPATH}" \ 305 LIBPATH="${LIBPATH}" \
303 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die 306 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
304 fi 307 fi
305} 308}
306 309

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20