Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2001 16:43:09 -0600
From:      Steve Price <steve@havk.org>
To:        Will Andrews <will@physics.purdue.edu>, Andrew Gallatin <gallatin@cs.duke.edu>, will@FreeBSD.ORG, obrien@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: qt22 port for Alpha
Message-ID:  <20010309164309.H78857@bsd.havk.org>
In-Reply-To: <20010309123155.F45561@ohm.physics.purdue.edu>; from will@physics.purdue.edu on Fri, Mar 09, 2001 at 12:31:55PM -0500
References:  <20010308215655.J46327@bsd.havk.org> <15017.4397.19983.257573@grasshopper.cs.duke.edu> <20010309123155.F45561@ohm.physics.purdue.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 09, 2001 at 12:31:55PM -0500, Will Andrews wrote:

> > The optimizer appears to be somewhat broken for c++ on alpha.  You
> > should be able to get it to compile by changing the '-O -pipe ... ' to
> > '-O0 -pipe ... ' for this port.
> > 
> > I have no idea how to really do this in a freebsd ports kinda way.
> 
> .if (${ARCH} == "alpha")
> CFLAGS+=	-O0
> .endif
> 
> near the bottom of the configuration (right before targets).  If Steve
> wants to test this on a 4.3/Alpha box and let me know the results I'll
> commit the fix.

Yes the patch below did the trick.  Thanks for the help gentleman.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/x11-toolkits/qt22/Makefile,v
retrieving revision 1.76
diff -u -r1.76 Makefile
--- Makefile	2001/03/05 12:00:08	1.76
+++ Makefile	2001/03/09 21:38:43
@@ -48,6 +48,12 @@
 INSTALLS_SHLIB=yes
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${MACHINE_ARCH} == "alpha"
+CFLAGS+=	-O0
+.endif
+
 pre-fetch:
 .if exists(${X11BASE}/lib/libqt2.so.3)
 .if !defined(WANT_STATIC)
@@ -124,4 +130,4 @@
 .endif
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010309164309.H78857>