From 35f1ac6c2092d7aa17a7bfba8c0398eda136f779 Mon Sep 17 00:00:00 2001 From: schwarz Date: Sun, 24 Dec 2006 14:07:55 +0000 Subject: added hack to work around gcc issue with -O3 optimization --- pkgtools/pkg_install-info/hacks.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pkgtools/pkg_install-info/hacks.mk diff --git a/pkgtools/pkg_install-info/hacks.mk b/pkgtools/pkg_install-info/hacks.mk new file mode 100644 index 00000000000..06ecf465ffd --- /dev/null +++ b/pkgtools/pkg_install-info/hacks.mk @@ -0,0 +1,15 @@ +# $NetBSD: hacks.mk,v 1.1 2006/12/24 14:07:55 schwarz Exp $ + +.if !defined(PKG_INSTALL-INFO_HACKS_MK) +PKG_INSTALL-INFO_HACKS_MK= #defined + +### [Sat Dec 23 16:09:15 CET 2006: schwarz] +### work around gcc optimization issue (gcc bug report c/14675) +### see http://gcc.gnu.org/ml/gcc-bugs/2004-03/msg02604.html +### +. if !empty(PKGSRC_COMPILER:Mgcc*) && !empty(CFLAGS:M-O3) +PKG_HACKS+= suppress-Werror +BUILDLINK_TRANSFORM+= rm:-Werror +. endif + +.endif -- cgit v1.2.3