Subject: pkg/19189: compiling tweak to x11/qt3-libs
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/27/2002 17:14:54
>Number:         19189
>Category:       pkg
>Synopsis:       older gcc can't optimize one object
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 27 13:02:00 PST 2002
>Release:        NetBSD 1.5.3
System: NetBSD gussie.hclsmith 1.5.3 NetBSD 1.5.3 (GUSSIE) #0: Sat Aug 3 15:25:36 ADT 2002 kwantus@gussie.hclsmith:/mnt/B/hclsmith/usr/src/sys/arch/i386/compile/GUSSIE i386
Architecture: i386
Machine: i386
Compiler: gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
	The gcc that came with NetBSD-1.5.3/i386 can't optimise qrichtext.o.
	attempt to build x11/qt3-libs with basic NetBSD-1.5.3/i386 (or less) on
	a Celeron; qrichtext will take many hours if it finishes at all.
	add the following to the pkgsrc Makefile:

    cd ${WRKSRC}/src;\
     ${MV} Makefile Makefile.orig;\
     sed -e 's,qrichtext\.o .*cpp,& -O0,' <Makefile.orig >Makefile

If you know how to condition it to apply only to older gcc, be my guest.