From owner-freebsd-ports Thu Mar 25 5:18: 2 1999 Delivered-To: freebsd-ports@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 9FD9C14DD1 for ; Thu, 25 Mar 1999 05:17:53 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 2.12 #1) id 10QA0r-000AFS-00 for ports@freebsd.org; Thu, 25 Mar 1999 15:17:33 +0200 From: Sheldon Hearn To: ports@freebsd.org Subject: Re: REQ: patch to honour CFLAGS in XFree86 compile In-reply-to: Your message of "Thu, 25 Mar 1999 14:47:58 +0200." <20473.922366078@axl.noc.iafrica.com> Date: Thu, 25 Mar 1999 15:17:33 +0200 Message-ID: <39397.922367853@axl.noc.iafrica.com> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 25 Mar 1999 14:47:58 +0200, Sheldon Hearn wrote: > I'm fishing for a patch for the XFree86 port that'll have it build using > local CFLAGS for optimization instead of -O2. I seem to be following up to too many of my own posts today. Please excuse me, I had my first crack at jockeying vinyl last night, so I'm more amped than clued right now. The change required is trivial provided is isn't expected to grok CFLAGS dynamically. When I first looked at this, I was confused by the presence of a FreeBSD.cf.orig in the configured source. Ciao, Sheldon. Index: scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11/XFree86/scripts/configure,v retrieving revision 1.41 diff -u -d -r1.41 configure --- configure 1999/03/19 22:35:28 1.41 +++ configure 1999/03/25 13:02:16 @@ -348,6 +348,9 @@ patch -s -d $WRKDIR/xc -E -p0 < $K4PATCH fi +echo "#undef DefaultGcc2i386Opt" >>$F +echo "#define DefaultGcc2i386Opt -O -pipe" >>$F + cat $F >> $WRKDIR/xc/config/cf/xf86site.def exit 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message