summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install-info
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2006-12-24 14:07:55 +0000
committerschwarz <schwarz@pkgsrc.org>2006-12-24 14:07:55 +0000
commit35f1ac6c2092d7aa17a7bfba8c0398eda136f779 (patch)
tree70d8e79eb9cd4e0f7d610d4bf4059802b4d29e07 /pkgtools/pkg_install-info
parent5cf3e658841da947c725752337623e5625d7b770 (diff)
downloadpkgsrc-35f1ac6c2092d7aa17a7bfba8c0398eda136f779.tar.gz
added hack to work around gcc issue with -O3 optimization
Diffstat (limited to 'pkgtools/pkg_install-info')
-rw-r--r--pkgtools/pkg_install-info/hacks.mk15
1 files changed, 15 insertions, 0 deletions
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