diff options
Diffstat (limited to 'devel')
-rw-r--r-- | devel/bison/Makefile | 9 | ||||
-rw-r--r-- | devel/bison/hacks.mk | 18 |
2 files changed, 19 insertions, 8 deletions
diff --git a/devel/bison/Makefile b/devel/bison/Makefile index 22d0afdb8d9..1fa563034ba 100644 --- a/devel/bison/Makefile +++ b/devel/bison/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.49 2004/11/02 17:42:13 sketch Exp $ +# $NetBSD: Makefile,v 1.50 2004/11/14 07:24:37 jlam Exp $ DISTNAME= bison-1.875 PKGREVISION= 1 @@ -24,11 +24,4 @@ INFO_FILES= bison.info 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" diff --git a/devel/bison/hacks.mk b/devel/bison/hacks.mk new file mode 100644 index 00000000000..9c33ab36c5f --- /dev/null +++ b/devel/bison/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2004/11/14 07:24:37 jlam Exp $ + +.if !defined(BISON_HACKS_MK) +BISON_HACKS_MK= defined + +.include "../../mk/compiler.mk" + +### [Tue Nov 2 17:30:48 GMT 2004 : sketch] +### bison's quotearg_buffer_restyled() has issues with certain compilers +### (in particular, SunPro on Solaris/sparc) using optimisation flags. +### The resulting bison with optimisation breaks on at least net/libIDL. +### +.if !empty(PKGSRC_COMPILER:Msunpro) +PKG_HACKS+= optimisation +BUILDLINK_TRANSFORM+= rm:-O[0-9]* +.endif + +.endif # BISON_HACKS_MK |