summaryrefslogtreecommitdiff
path: root/pkgtools
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
commit69e1646f4db5ec7d749bafbf00e01a3bdd81a66f (patch)
tree70d8e79eb9cd4e0f7d610d4bf4059802b4d29e07 /pkgtools
parentfb9eb03ee46ef2f72fc70bf544084e152e22e81f (diff)
downloadpkgsrc-69e1646f4db5ec7d749bafbf00e01a3bdd81a66f.tar.gz
added hack to work around gcc issue with -O3 optimization
Diffstat (limited to 'pkgtools')
-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