From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DKIM_ADSP_NXDOMAIN, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE autolearn=no autolearn_force=no version=4.0.0 Received: from srealm.net.au (unknown [216.179.95.39]) by chiba.3jane.net (Postfix) with ESMTP id D7EBE20EE874; Wed, 27 Mar 2002 03:36:43 -0600 (CST) Received: from _HOSTNAME_ (haven.srealm.net.au [216.179.95.48]) by srealm.net.au (8.11.6/8.11.6/SuSE Linux 0.5) with SMTP id g2R9WP417151; Wed, 27 Mar 2002 04:32:25 -0500 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Wed, 27 Mar 2002 04:32:25 -0500 From: "Preston A. Elder" To: gentoo-user@gentoo.org Cc: gentoo-dev@gentoo.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-EHK1LYOG+JKZsJdiHMil" X-Mailer: Evolution/1.0.2- Date: 27 Mar 2002 04:32:25 -0500 Message-Id: <1017221545.27285.15.camel@haven> Mime-Version: 1.0 Subject: [gentoo-dev] GCC 3.0 use flag? Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 61671c32-14e8-4d2c-b0f4-6710c47b5811 X-Archives-Hash: f375f53db33dc540a84421b0bd4efc4a --=-EHK1LYOG+JKZsJdiHMil Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi all, What do you all think of adding a 'gcc3' USE flag. This could be used to activate special patches/flags that are only required on GCC 3.0 (and above), and possibly break compilation by 2.95.3 if used. More and more as I look at things, its getting necessary to know which compiler will be building a package. The example I can think of off the top of my head, is that I'm creating an ebuild file for openoffice 641c (currently only 641b is in the archive). Openoffice has a configure flag, called --enable-gcc3, for when compiling with the 3.0.x compiler suite. Openoffice has moved to 3.0.x for their linux builds as of 641c (641b I believe they still used 2.95.x). I'm not even sure if it still compiles on 2.95.x, but it should, however I would love to be able to give the option to compile with either, and just set the flag if its gcc 3.0.x. I could figure out the compiler version by doing: GCC_MAJOR=3D`gcc --version | cut -f1 -d.` and then local myflags if [ $GCC_MAJOR =3D=3D 3 ]; then myflags=3D"--enable-gcc3" fi then simply add $myflags to the configure options. however the above seems like (and is) a hack. Plus, when patches start being made to fix code that wont compile on gcc 3.0.x (see my previous email), we're going to NEED to know the gcc version in use. Hense, I would suggest a gcc3 use flag. That, or there could be a default veriable offered by portage which contains the GCC version (now THAT would be cool, but not expected). Anyway, Comments? opinions? --=20 PreZ Systems Administrator GOTH.NET Goth Code '98: tSKeba5qaSabsaaaGbaa75KAASWGuajmsvbieqcL4BaaLb3F4 nId5mefqmDjmmgm#haxthgzpj4GiysNkycSRGHabiabOkauNSW GOTH.NET - http://www.goth.net Free online resource for the gothic community. --=-EHK1LYOG+JKZsJdiHMil Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8oZGpuULtzKdGMboRArmXAKCnle+RP3dxGM1MDvmVqrDkvuvuvgCdFJGX Co224vdzCOOR7Y4hgc+uk3w= =jxeY -----END PGP SIGNATURE----- --=-EHK1LYOG+JKZsJdiHMil--