pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/bison Remove optimisations when compiling with s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9be43956ac2
branches:  trunk
changeset: 482747:c9be43956ac2
user:      sketch <sketch%pkgsrc.org@localhost>
date:      Tue Nov 02 17:42:13 2004 +0000

description:
Remove optimisations when compiling with sunpro to avoid issues with
quotearg_buffer_restyled().  Google suggests this function has issues
with other non-gcc compilers using optimisation as well.

Notable fixes include net/libIDL's parser.y

diffstat:

 devel/bison/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r d1d26686b55d -r c9be43956ac2 devel/bison/Makefile
--- a/devel/bison/Makefile      Tue Nov 02 17:22:34 2004 +0000
+++ b/devel/bison/Makefile      Tue Nov 02 17:42:13 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2004/01/20 22:24:35 jlam Exp $
+# $NetBSD: Makefile,v 1.49 2004/11/02 17:42:13 sketch Exp $
 
 DISTNAME=              bison-1.875
 PKGREVISION=           1
@@ -24,4 +24,11 @@
 
 TEST_TARGET=           check
 
+.include "../../mk/compiler.mk"
+
+# quotearg_buffer_restyled() has issues with optimisation
+.if !empty(PKGSRC_COMPILER:Msunpro)
+BUILDLINK_TRANSFORM+=   rm:-O[0-9]*
+.endif
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index