From owner-freebsd-ports Fri Aug 16 12:31: 9 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C7CD37B400 for ; Fri, 16 Aug 2002 12:31:05 -0700 (PDT) Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E75343E70 for ; Fri, 16 Aug 2002 12:31:04 -0700 (PDT) (envelope-from mailnull@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 17fmoJ-0007fd-00; Fri, 16 Aug 2002 21:31:03 +0200 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.5/8.12.5) with ESMTP id g7GJ7hFe020234 for ; Fri, 16 Aug 2002 21:07:43 +0200 (CEST) (envelope-from mailnull@localhost.mips.inka.de) Received: (from mailnull@localhost) by kemoauc.mips.inka.de (8.12.5/8.12.5/Submit) id g7GJ7gcb020233 for freebsd-ports@freebsd.org; Fri, 16 Aug 2002 21:07:42 +0200 (CEST) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: ports/41710: [port] lame update (fix CFLAGS) Date: Fri, 16 Aug 2002 19:07:42 +0000 (UTC) Message-ID: References: <200208161640.g7GGe3Dh028390@freefall.freebsd.org> <20020816191056.0a9a3b2c.Alexander@Leidinger.net> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Alexander Leidinger wrote: > > *I* want to decide if I build with "-pipe" or without. And if I > > I know only one bugreport with "-pipe", Irix doesn't seem to like it. To its credit, the script checks whether the compiler is gcc before adding this. > Besides this, every OS seems to accept it. Normaly it speeds up the > build. I know somebody who will tell you not to bother with "-pipe" and instead to use a memory-backed /tmp. Hey, maybe we could benchmark the effect of either by building the lame port... Oh, I guess we can't. > So why do we need to patch it (nitpicking on "-pipe" seems to be > a bikeshed argument for me)? I don't nitpick on "-pipe", you do. > > want to, then what's the point of "-pipe -pipe"? "-Wall" doesn't > > add anything outside development. > > It isn't harmfull. We do we need to add a patch for it? It obscures the important warnings. Why does the configure script have to go out of its way to *add* it? Who will fix the warnings if I dump the output of the build on him? > > Basically these happened to be nearby, so I removed them along with > > the other cruft that killed the compile on -CURRENT/alpha. > > Can you be more specific please? The lame configure script used to add various optimization flags to CFLAGS, in particular -O3, which produces garish warnings on alpha cc1: warning: *** *** The -O3 flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM *** and -ffast-math, which is broken on -CURRENT/alpha (probably a bug, but that's beside the point). The patch in question is a *minimal* patch to keep the configure script from forcing these flags on us. And while I was there, I also removed the superfluous addition of "-Wall -pipe" three lines above. This isn't even a separate hunk in the patch file. There are probably thousands of ports in the tree that don't respect CFLAGS. Haggling over each flag isn't going to help clean this mess up. -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message