diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-14 07:24:37 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-14 07:24:37 +0000 |
commit | fcd9dec9347cc21da12f6c2a667bcd0218c438d6 (patch) | |
tree | 0cb55f1d4776c2ead34f38a3794cc1da402c61df /devel/bison | |
parent | aadc73d1e2856c25ae84b89f33f2e856e492c9d1 (diff) | |
download | pkgsrc-fcd9dec9347cc21da12f6c2a667bcd0218c438d6.tar.gz |
Move hacks from package Makefile to hacks.mk.
Diffstat (limited to 'devel/bison')
-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 |